Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I bundle only a range of changesets?

I made some changes to my working repository and added a few small (2kb-10kb) python files. Then I bundled my changes:

hg bundle --base 100:120 nameofbundle.hg

My bundle seems to be 20MB. When I run:

hg diff -r 100:120

I can see all the changes I made in the python files but still it does not explain the 20MB size. There may be a chance that I may have added another file thus causing this strange size, is there any way of viewing this file or the files which are being tracked (from r100-120)?

I hope I have made this clear, I am still a newbie at mercurial.


EDIT

When I run

hg bundle --base 119:120 nameofbundle.hg
hg bundle --base 118:120 nameofbundle.hg

I get 439 change sets found for both when I have just edited 8 lines in the python files for both change sets. I do not understand these changes are not displaying in the diff?

like image 244
Neeran Avatar asked Apr 16 '12 11:04

Neeran


People also ask

How do you pull in Mercurial?

From the main menu, choose Hg | Mercurial | Pull. Specify the required URL address of the source remote repository.

What is hg in terminal?

The hg command provides a command line interface to the Mercurial system.

What is hg update?

Use the command hg update to switch to an existing branch. Use hg commit --close-branch to mark this branch head as closed. When all heads of a branch are closed, the branch will be considered closed. Returns 0 on success.


1 Answers

You can take a look in the bundle with the following command

hg in nameofbundle.hg

It'll show the changesets in the given bundle file.

like image 98
Paul Rubel Avatar answered Sep 19 '22 12:09

Paul Rubel