mercurial - Can hg log show only the ancestors of a given revision? -


one thing miss moving svn mercurial mercurial's hg log command insists on showing history rather history of current working revision.

for example, i'm working on repo lot of check-ins head within branch, , first 20 log entries have nothing line of development.

there bunch of options hg log, but...
--rev shows revision asked not ancestors
--branch doesn't work because active head in same branch mine
--prune removes ancestors of other head, if they're ancestors
--user doesn't work because i'm not user in line of development

i guess hg strip, seems overkill...

thoughts?
ryan

if you've got mercurial 1.6 or later, can use revsets this:

hg log --rev "ancestors(.)" hg log --rev "reverse(ancestors(.))"  # output in same order vanilla hg log 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -