Hg help with head()
Matt Mackall
mpm at selenic.com
Mon Oct 22 22:30:54 UTC 2012
On Mon, 2012-10-22 at 11:49 -0700, Kalyan Nistala wrote:
> Hello,
>
> I am trying to get heads of all active branches from mercurial repository.
> I am using the below command using head():
>
> hg log -r "sort(head() and not closed(), -rev)"
>
> This is returning me heads with no branch names as well. Per documentation,
> head() is supposed to get branch heads. But, I am seeing revsets where
> branch name is null.
Every commit is on a branch, thus every commit has a branch name.
Sometimes that branch name is "", aka "the default branch", aka
"default".
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list