[Python-Dev] Useful "hg log" trick to only see revisions in the current branch

Nick Coghlan ncoghlan at gmail.com
Tue Mar 22 12:11:42 CET 2011


"hg log -b ." restricts the hg log output to the changesets in the
currently active branch.

Other commands (such as "hg outgoing") similarly accept "-b ." to
request restricting their operation to the current branch.

Also, for anyone that wasn't already aware, "hg update" supports tab
completion when switching branches, which can make life a bit easier
when working with named branches.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list