我们的项目中有几个远程传票,他们的地址最近从http://host/path转移到了http://other_host/path。比如说,从上个月开始,Mercurial认为可以在http://host/path找到子存储库,如何才能回到上个月的修订版本
$ hg -v up -d 1/20/2012
Found revision 1091 from Fri Jan 20 10:22:29 2012 -0600
resolving manifests
abort: error: No connection could be made because the target machine actively refused it
$ hg --debug up -d 1/20/2012
Found revision 1091 from Fri Jan 20 10:22:29 2012 -0600
resolving manifests
<snip...>
subrepo merge 0f0f2b807811+ 0908d5249a6f 0f0f2b807811
subrepo external/our_remote_repo: both sides changed, merge with https://old_host/external/our_remote_repo:c66cf52ce1f240193190cec392d889618c09f22b:hg
using https://old_host/external/our_remote_repo
sending capabilities command
using auth.old_host.* for authentication
abort: error: No connection could be made because the target machine actively refused it发布于 2012-02-21 07:15:48
根据documentation的说法,您可以在remap such urls中使用hgrc中的子路径。
这归结为定义子存储库的源位置,并以以下形式重写规则
<pattern> = <replacement>其中pattern是与源匹配的正则表达式,替换是用于重写它的替换字符串。组可以在模式中匹配,并在替换中引用。例如:
http://server/(.*)-hg/ = http://hg.server/\1/重写
http://server/foo-hg/ into http://hg.server/foo/.发布于 2012-02-21 01:27:55
你不能这么做。Mercurial在状态中返回,就像它在这个修订版中一样( subrepo的URL,subrepo中的修订版)
https://stackoverflow.com/questions/9365174
复制相似问题