Neeran
Neeran

Reputation: 1793

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?

Upvotes: 6

Views: 3256

Answers (2)

StayOnTarget
StayOnTarget

Reputation: 13037

[As noted by the OP]


The command should have been

hg bundle -r 120 --base 100 nameofbundle.hg

This bundled only the 20 change sets and reducing the size to a mere 16k.

Upvotes: 0

Paul Rubel
Paul Rubel

Reputation: 27232

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.

Upvotes: 2

Related Questions