不应该“hg outgoing”使用默认值:pushurl而不是默认值?

时间:2017-12-07 12:53:27

标签: mercurial push pull

我的.hg/hgrc配置如下:

[paths]
default         = ssh://remote//path/to/pull/repo
default:pushurl = ssh://remote//path/to/push/repo

正如预期的那样,default时正在使用pullin时正在使用default:pushurlpush

$ 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 命令时,会使用默认路径,而不是默认值:pushurl

$ hg outgoing
comparing with ssh://remote//path/to/pull/repo

这个Mercurial BugTracker issue现在存在一段时间了,两种情况都存在争议。如果解决了,问题似乎有一个简单的解决方法,所以我的问题是:

这种行为实际上是一个功能还是一个错误?

1 个答案:

答案 0 :(得分:3)

这是一个错误。看起来最后一个字是发送给mercurial-devel的补丁,它有一些测试失败:

https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/108236.html

我怀疑如果有人修复了这些失败并且不满意它会被合并的补丁。