One thing I really miss moving from svn to mercurial is that mercurial's hg log command insists on showing all history rather than only the history of my current working revision.
For example, I'm working on a repo with a lot of check-ins to another head within my branch, and the first 20 log entries have nothing to do with my line of development.
There are a bunch of options to hg log, but...
--rev shows the revision asked for but not its ancestors
--branch doesn't work because the active head is in the same branch as mine
--prune removes all ancestors of the other head, even if they're also my ancestors
--user doesn't work because I'm not the only user in this line of development
I guess I could hg strip, but that seems like overkill...
Thoughts?
Ryan
Description. Update the repository's working directory to the specified changeset. If no changeset is specified, update to the tip of the current named branch and move the active bookmark (see hg help bookmarks). Update sets the working directory's parent revision to the specified changeset (see hg help parents).
If you've got Mercurial 1.6 or later, you can use revsets to do this:
hg log --rev "ancestors(.)"
hg log --rev "reverse(ancestors(.))" # Output in the same order as vanilla hg log
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With