newcomer question not found in the FAQ

Hans Meine meine at informatik.uni-hamburg.de
Wed Dec 23 10:12:35 UTC 2009


Am Dienstag, 22. Dezember 2009 23:48:21 schrieb venizio krups:
> On Tue, Dec 22, 2009 at 3:11 PM, Martin Geisler <mg at lazybytes.net> wrote:
> > Simply adding a changeset made with 'hg commit --close-branch' wont make
> > a repository head disappear from the 'hg heads' list. Such a changeset
> > only affects named branches, it will apparently hide the branch from the
> > output of 'hg branches'.
>
> this is documented.
>
> from hg heads:
> "With no arguments, show all repository head changesets."

Yes, but "show all open repository head changesets." would be better.

> moreover:
> "If one or more REV is given, the "branch heads" will be shown for the
> named branch
> associated with the specified changeset(s)."

Except from the fact that I don't understand the second part of that sentence, 
it does not mention anything about open vs. closed heads.

> so what  you have to do is say:
> hg heads <named branch> in which case, and if you closed all heads in
> that named branch,  it will say: "no open branch heads on branch
> <named branch>"
>
> i rather like that.

Yes, no problem with that behaviour.

-- 
Ciao, /  /
     /--/
    /  / ANS



More information about the Mercurial mailing list