【发布时间】:2010-09-27 13:11:41
【问题描述】:
如何为 mercurial 本地存储库设置默认远程存储库?
【问题讨论】:
-
你能解释一下吗?执行
hg pull时是指默认的URL吗? -
是的,我在执行“hg pull”后收到“repository default not found”消息。
标签: mercurial
如何为 mercurial 本地存储库设置默认远程存储库?
【问题讨论】:
hg pull时是指默认的URL吗?
标签: mercurial
它在 .hg/hgrc 文件中。
[paths]
default = https://myserver/hg/repo1
default:pushurl = /home/me/mytestrepo
【讨论】:
echo -e "[paths]\ndefault = http://myserver/hg/repo1\ndefault-push = ../mytestrepo" >> .hg/hgrc
man hgrc 说现在(9 年后:-) 它应该是 default:pushurl 而不是默认推送。