Search code examples
mercurialbundle

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?


Solution

  • 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.