开发者

Show heads of one branch?

开发者 https://www.devze.com 2023-01-05 03:23 出处:网络
Is it possible to ask Mercurial to show only th开发者_运维百科e heads of one branch? For example, I often want to double-check that default only has one head, but currently I need to do that \"manuall

Is it possible to ask Mercurial to show only th开发者_运维百科e heads of one branch? For example, I often want to double-check that default only has one head, but currently I need to do that "manually" (ie, checking the output of hg heads for more than one entry which is in default).


hg heads <branch name> works on Mercurial 1.5.3.


To get the heads of the current branch you can use:

hg heads .

And to get the number of heads of the current branch (in Bash):

hg heads -q . | wc -l
0

精彩评论

暂无评论...
验证码 换一张
取 消