Git-like log

Martin Geisler mg at lazybytes.net
Sun Dec 27 14:41:24 CST 2009


Hi Tuncer,

We talked on IRC about how to get make

  hg update foo
  hg log

print only changesets on the branch 'foo' you've just updated to.

It turns out that the -f/--follow option helps here. Normally 'hg log'
will print out changesets starting with the latest changeset and going
backwards.

With the -f option, it will instead print changesets starting with the
working copy parent revision (see 'hg parents') and follow the parent
revisions backwards. That means that 'hg log -f' will print out
changesets on the 'foo' branch first and eventually print changesets on
the parent branch and so on. With -l, this seems to be quite close to
what you asked for.

Please let us know how that works out for you!

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial/attachments/20091227/a3ec224e/attachment.pgp>


More information about the Mercurial mailing list