我是在Mercurial的第一天,我做了我的谷歌家庭作业,但我找不到一个解决方案。
以下是服务器的输出,它应该比我更好地解释了问题:
david@triton:~/www/triton$ ls -l -a | grep .hg
drwxr-xr-x 4 david david 4096 2011-11-19 17:44 .hg
-rw-r--r-- 1 david david 0 2011-11-18 22:23 .hgignore
david@triton:~/www/triton$ hg init
abort: repository . already exists!
david@triton:~/www/triton$ hg serve
abort: There is no Mercurial repository here (.hg not found)!我试图从windows客户端上的tortiseHG推送到此服务器,但它也抱怨没有repo。
怎么回事,伙计们?
发布于 2011-12-08 06:10:28
如果服务器和客户端的mercurial版本不同,就可能发生这种情况。在这种情况下,您必须将存储库转换为较旧的版本(或将客户端升级到服务器版本)以修复此问题。哈!
如果像R4yan说的那样运行hg stat或hg摘要,您可能会看到更有用的错误消息。如果版本不同,您可能会看到类似这样的内容:“abort: requirement”dotencode“not supported!”
发布于 2011-11-20 11:32:27
hg init只是检查.hg目录是否已经存在,这是很明显的。试一试
$ ls -l .hg
ls: cannot access .hg: No such file or directory
$ mkdir .hg
$ hg init
abort: repository . already exists!.hg目录是如何出现在那里的?如果它是你自己创建的,你就不应该这么做。你应该让hg init创建它,因为它在里面放了很多其他的东西。您从hg summary获得了什么输出
https://stackoverflow.com/questions/8198955
复制相似问题