[Yt-dev] Quick note about mercurial 1.5

Matthew Turk matthewturk at gmail.com
Fri Apr 23 19:15:24 PDT 2010


Hi all,

Just a note: with mercurial 1.5, the meaning of "hg heads" has changed
slightly -- it is no longer neutral to branch mechanics.  This means
that if a named branch has been merged, but not "closed", it will
still show up in the default output of hg heads.  For the most part I
don't think this is really what we want, because nobody has been
closing branches.  So, if you use hg 1.5 right now on any repo with
multiple named branches, you're going to see way more than you
expected.  To get around this,

hg heads -t

will only show revisions with no children *at all*, rather than the
new default behavior, which was to show heads with no children *in
that named branch*.  You can alias this to "hg heads" by putting this
in the [alias] section of your ~/.hgrc :

heads = heads -t

(Another fun alias is "nudge = push -r ." which will only push the
necessary changesets to fully describe the current revision -- any
other trees of development will not be included in the push.  Useful
for when doing local development with multiple heads!!)

-Matt



More information about the yt-dev mailing list