【发布时间】:2018-05-21 14:12:07
【问题描述】:
我的.hg/hgrc 中有以下配置:
[paths]
default = ssh://remote//path/to/pull/repo
default:pushurl = ssh://remote//path/to/push/repo
正如预期的那样,pull-ing 和 in-ing 时使用 default,push-ing 时使用 default:pushurl:
$ hg pull
pulling from ssh://remote//path/to/pull/repo
$ hg in
comparing with ssh://remote//path/to/pull/repo
$ hg push
pushing to ssh://remote//path/to/push/repo
不过,当使用 outgoing 命令时,使用的是 default 路径,而不是 default:pushurl:
$ hg outgoing
comparing with ssh://remote//path/to/pull/repo
这个Mercurial BugTracker issue 已经存在一段时间了,这两种情况都有争论。如果得到解决,这个问题似乎有一个简单的解决方法,所以我的问题是:
这种行为实际上是功能还是错误?
【问题讨论】: