【问题标题】:Shouldn't "hg outgoing" use default:pushurl instead of default?“hg 传出”不应该使用默认值:pushurl 而不是默认值吗?
【发布时间】: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 时使用 defaultpush-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 已经存在一段时间了,这两种情况都有争论。如果得到解决,这个问题似乎有一个简单的解决方法,所以我的问题是:

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

【问题讨论】:

    标签: mercurial push pull


    【解决方案1】:

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

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

    我怀疑如果有人修复了这些故障并重新提交将合并的补丁。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-05-14
      • 2021-11-19
      • 2015-09-28
      • 2014-02-16
      • 2015-05-22
      • 2020-10-06
      • 2013-10-18
      • 1970-01-01
      相关资源
      最近更新 更多