Decompressing Bundle

anatoly techtonik techtonik at gmail.com
Mon Aug 11 07:40:14 CDT 2014


On Mon, Aug 11, 2014 at 3:26 PM, Martin Geisler <martin at geisler.net> wrote:
> anatoly techtonik <techtonik at gmail.com> writes:
>
>> Hi,
>>
>> It would be nice to get ability to decompress .bundle
>> file to review changes before importing them to repo.
>>
>> $ hg unbundle --decompress <file>
>
> You can use 'hg incoming' to check what unbundle or pull will bring into
> the repository.
>
> If you need to look at the changesets more carefully, then you can
> overlay the bundle on the current repository with the -R flag and use
> all the normal commands. Like this:
>
>   $ hg -R my-bundle.hg log -r 100:110
>   $ hg -R my-bundle.hg diff some-file -r 105:110
>
> The commits in the bundle appear "at the end" of the repository, just as
> if you had actually executed the pull or unbundle.

Thanks. That really helps. I found out that it works even without -R.

$ hg inc doc_fix_mflacy.bundle
comparing with doc_fix_mflacy.bundle
searching for changes
changeset:   3175:dd98bd6ae41b
tag:         tip
parent:      3168:db8bdcaec0e2

-- 
anatoly t.


More information about the Mercurial-devel mailing list