我在我的Windows 7机器上安装了Mercurial。我知道这一点,因为当我输入hg --version时,我得到:
Mercurial Distributed SCM (version 2.5.2)
(see http://mercurial.selenic.com for more information)
Copyright (C) 2005-2012 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.我只是通过hg commit -m "Made some changes."向本地回购提交了一些代码。
然后输入hg push并获取:
pushing to default-push
abort: repository default-push not found!我的C:\Users\myuser\.hg\hgrc文件看起来如下:
[trusted]
users = myuser这是怎么回事?
发布于 2014-10-22 20:58:40
您需要配置默认路径。要做到这一点,在.hg\hgrc文件中有一个这样的部分:
[paths]
default = http://somewhere/to/push/todefault路径将用于hg push和hg pull。如果希望为default-push使用不同的路径,也可以配置hg push路径。有关此问题的更多帮助,请参见hg help paths。
https://stackoverflow.com/questions/26509157
复制相似问题