Differences between revisions 3 and 4
Revision 3 as of 2011-10-11 20:12:40
Size: 414
Editor: 249-92-202-46
Comment: Starting from Mercurial 1.7 you can use such syntax (example show nested queries syntax)
Revision 4 as of 2011-10-11 20:13:08
Size: 412
Editor: 249-92-202-46
Comment:
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
Starting from Mercurial 1.7 you can use such syntax (example show nested queries syntax): Starting from Mercurial 1.7 you can use such syntax (example show nested query syntax):

Find common ancestor of two revisions

hg debugancestor rev1 rev2

In older hg versions, you have to explicitly tell it to use the changelog, i.e.

hg debugancestor .hg/store/00changelog.i rev1 rev2

Starting from Mercurial 1.7 you can use such syntax (example show nested query syntax):

hg log -r "ancestor(rev1,ancestor(rev2,rev3))"


CategoryTipsAndTricks

FindCommonAncestorOfRevisions (last edited 2011-10-11 20:13:08 by 249-92-202-46)