Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2008-03-23 16:48:01
Size: 612
Editor: abuehl
Comment: moved from TipsAndTricks/Basic
Revision 3 as of 2008-03-23 19:17:21
Size: 622
Editor: abuehl
Comment: fixing option error
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Bundle files may contain either all or some of the [:ChangeSet:changesets] in a [:Repository:repository]. To view a partial bundle, you must have a repository containing [:Bundle:bundle] files may contain either all or some of the [:ChangeSet:changesets] in a [:Repository:repository]. To view a partial bundle, you must have a repository containing
Line 10: Line 10:
$ hg -R bundle.hg diff -R tip # compare the working dir to the bundle's tip $ hg -R bundle.hg diff -r tip # compare the working dir to the bundle's tip

Looking into bundle files

[:Bundle:bundle] files may contain either all or some of the [:ChangeSet:changesets] in a [:Repository:repository]. To view a partial bundle, you must have a repository containing the bundle's base changesets. Then you can overlay the bundle on top of the repo like so:

$ cd repo
$ hg in bundle.hg # view the changesets added by the bundle
$ hg -R bundle.hg log # view the log of repo+bundle
$ hg -R bundle.hg diff -r tip # compare the working dir to the bundle's tip
$ hg -R bundle.hg cat -r tip foo.txt # extract a particular file


CategoryTipsAndTricks

LookingIntoBundles (last edited 2012-11-06 22:46:20 by abuehl)