Mercurial 显示“原点”之前的提交数量
我在这里用 git 术语思考...是否可以看到您在原点之前进行了多少本地提交?就像在 git 中一样,如果你输入 git status ,它会告诉你
Your branch is ahead of blah by blah blah
Mercurial 中是否有类似的东西?我知道有 hg 传出,但我不想要一个击中服务器的命令,因为我想将输出放入提示符中(例如通常实现的 bashrc 函数 num_git_commits_ahead
)
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
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
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为
hg Summary --remote
会给你你想要的,但它也会给你一些额外的东西。I think
hg summary --remote
will give you what you want, but it will give you a bit extra, too.