【发布时间】:2011-06-28 08:12:31
【问题描述】:
我在这里用 git 术语思考......是否有可能看到你在原点之前做了多少本地提交?和 git 一样,如果你输入 git status 它会告诉你
Your branch is ahead of blah by blah blah
Mercurial 中有类似的东西吗?我知道有 hg 传出,但我不希望有一个命令到达服务器,因为我想将输出放在我的提示符中(如常用的 bashrc 函数num_git_commits_ahead)
【问题讨论】: