如何在SourceForge上设置第二个Mercurial存储库?

时间:2013-06-25 20:45:15

标签: linux unix mercurial sourceforge

我一直在尝试按照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://myuser@hg.code.sf.net/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菜单或页面下。

我错过了哪一步?

2 个答案:

答案 0 :(得分:3)

事实证明答案是:不要使用SourceForge文档!我上面给出的link给出了完全错误的指示!

我在上面创建的存储库可以从URL hg clone ssh://<user>@project.hg.sourceforge.net/hgroot/project/newrepo复制。但是,它没有以任何方式链接到SourceForge项目页面 - 它似乎是一个弃用的位置,没有人删除过时的文档。

正确的方法是进入SF项目页面的“管理”标签,然后选择左侧菜单中的“工具”选项,然后选择“点击安装”下的“Mercurial”选项。 / p>

Commeça:enter image description here

就这样,它完成了!

答案 1 :(得分:0)

您错过了路径中的双字母pr部分。也就是说,您应该在'clone'命令中指定... / p / pr / project / newrepo。