Decompressing Bundle

Simon King simon at simonking.org.uk
Mon Aug 11 07:13:32 CDT 2014


On Mon, Aug 11, 2014 at 1:03 PM, anatoly techtonik <techtonik at gmail.com> wrote:
> Hi,
>
> It would be nice to get ability to decompress .bundle
> file to review changes before importing them to repo.
>
> $ hg unbundle --decompress <file>
>

A bundle is usable like a regular repository in many contexts, and
there is a "bundle()" revset to select only revisions that exist in
the bundle. So for example:

  hg log -R path/to/bundle -r "bundle()"

...will display the log just for the changesets that exist in the
bundle. You could add "-p" to view the diffs, use "hg cat" to inspect
file contents, and so on.

(I expected it to be possible to use "hg serve" to browse the
repository as well, but it didn't work in a very quick test - I don't
know if this is a bug or a not-yet-implemented feature)

Hope that helps,

Simon


More information about the Mercurial-devel mailing list