我一直试图按照here的说明在SourceForge上创建第二个Mercurial存储库。
以下是我在登录到交互式shell后所做的全部工作:

[myuser@shell-23010 project]$ pwd
/home/scm_hg/p/pr/project
[myuser@shell-23010 project]$ mkdir newrepo
[myuser@shell-23010 project]$ hg init newrepo
[myuser@shell-23010 project]$ chmod -R g+w newrepo
[myuser@shell-23010 project]$ cd newrepo
[myuser@shell-23010 newrepo]$ ls -al
total 12
drwxr-xr-x 3 myuser   root 2048 Jun 25 20:37 .
drwxr-xr-x 5 dummy    root 2048 Jun 25 20:36 ..
drwxr-xr-x 3 myuser   root 2048 Jun 25 20:37 .hg
[myuser@shell-23010 newrepo]$ cd .hg
[myuser@shell-23010 .hg]$ ls -al
total 20
drwxr-xr-x 3 myuser   root 2048 Jun 25 20:37 .
drwxr-xr-x 3 myuser   root 2048 Jun 25 20:37 ..
-rw-r--r-- 1 myuser   root   57 Jun 25 20:37 00changelog.i
-rw-r--r-- 1 myuser   root   23 Jun 25 20:37 requires
drwxr-xr-x 2 myuser   root 2048 Jun 25 20:37 store
[myuser@shell-23010 .hg]$

到目前为止,还不错。然而:
当试图将newrepo克隆到我的本地计算机时,我得到一个蹩脚的响应:
PS C:\Users\myuser\temp> hg clone ssh://[email protected]/p/project/newrepo local-newrepo
remote: abort: There is no Mercurial repository here (.hg not found)!
abort: no suitable response from remote hg!

此外,newrepo不会显示在我的SF项目页面的Mercurial菜单或页面下。
我缺了哪一步?

最佳答案

答案是:不要使用SourceForge文档!我在上面所说的“aa”给出了完全错误的方向!
我在上面创建的存储库可以从URLhg clone ssh://<user>@project.hg.sourceforge.net/hgroot/project/newrepo中克隆。但是,它没有以任何方式链接到SourceForge项目页面——它似乎是一个不推荐使用的位置,而且没有人删除过时的文档。
正确的方法是进入SF项目页面的“Admin”选项卡,然后在左侧菜单上选择“Tools”选项,然后在“Click to Install”下选择“Mercurial”选项。
通信:
就这样,结束了!

关于linux - 如何在SourceForge上设置第二个Mercurial存储库?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/17307189/

10-10 01:51