开发者

Show heads of one branch?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜