在“原点"之前,Mercurial显示提交次数. [英] Mercurial show number of commits ahead of "origin"

查看:61
本文介绍了在“原点"之前,Mercurial显示提交次数.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里用git的方式思考...是否有可能看到您在原点之前进行了多少次本地提交?就像在git中一样,如果您键入git status,它将告诉您

I'm thinking in git terms here ... is it possible to see how many local commits you have made ahead of the origin? As in git, if you type git status it will tell you

Your branch is ahead of blah by blah blah

水星有类似的事情吗?我知道有汞传出,但我不希望有一个命中服务器的命令,因为我想将输出放在提示中(例如常用的bashrc函数num_git_commits_ahead)

Is there a similar thing in Mercurial? I know there is hg outgoing but I don't want a command that hits the server as I want to put the output in my prompt (like the commonly implemented bashrc funciton num_git_commits_ahead)

推荐答案

我认为hg summary --remote会给您想要的东西,但也会给您带来一些额外的好处.

I think hg summary --remote will give you what you want, but it will give you a bit extra, too.

这篇关于在“原点"之前,Mercurial显示提交次数.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆