Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Svn 使用hgsubversion时重新定义分支、标记和主干的位置_Svn_Mercurial_Hgsubversion - Fatal编程技术网

Svn 使用hgsubversion时重新定义分支、标记和主干的位置

Svn 使用hgsubversion时重新定义分支、标记和主干的位置,svn,mercurial,hgsubversion,Svn,Mercurial,Hgsubversion,我正在尝试使用hgsubversion将一个相当大的Subversion存储库转换为Mercurial。除了没有捕获分支和标记,最终的Mercurial存储库如下所示之外,我几乎可以正常工作: Repo > Trunk > Code > Database > Documentation 我正在运行的命令是: hg clone --startrev 5802 --config hgsubversion.authormap=a

我正在尝试使用hgsubversion将一个相当大的Subversion存储库转换为Mercurial。除了没有捕获分支和标记,最终的Mercurial存储库如下所示之外,我几乎可以正常工作:

Repo
   > Trunk
       > Code
       > Database
       > Documentation
我正在运行的命令是:

hg clone --startrev 5802 --config hgsubversion.authormap=authors.txt --config hgsubversion.defaulthost=me.com file:///C:/Users/me/projects/MyProjectRepo MyProjectRepo-hgsvn5802
我的Subversion存储库实际上是文件系统上的镜像和更新的本地镜像。之所以这样做,是因为直接访问URL时,运行hgsubversion或convert的速度非常慢。存储库的结构是这样的(请注意大写的第一个字母)


有没有想过我可能做错了什么?大写名称是否导致自动分支检测失败?我可以覆盖hgsubversion查找主干、标记和分支的位置吗?

这里的问题肯定是大写字母。最简单的方法可能是编辑hgsubversion源代码,以便它查找大写名称,但实际上我欢迎使用补丁来配置主干/标记/分支名称


我可以发誓我们有这个功能,但我在代码中没有看到,所以我可能只是想起了过去的一个提议。

我自己没有尝试过这些,但描述了一种配置自定义Subversion结构的方法

hgsubversion.layout

设置存储库的布局标准采用正常的主干/分支/标签布局single表示将整个存储库转换为单个分支。如果服务器上的指定目录中存在任何主干、分支或标记,则默认设置为“自动”,会导致hgsubversion采用标准布局custom使hgsubversion读取hgsubversionbranch配置部分以确定存储库布局

另外,请检查文档的
hgsubversion.branchdir.*
hgsubversion.tagpath
,以及
hgsubversion.branchdir
部分

Repo
   > Branches
   > Tags
   > Trunk
       > Code
       > Database
       > Documentation