如何从 svn 转储文件中删除顶层
How to remove top level from svn dump file
我有一个 svn 转储文件,其中包含所有路径中的存储库名称。 IE
repo/trunk
repo/branches
repo/tags
我正在使用转储文件在另一台服务器上重新创建存储库,但我需要从路径中删除 "repo" 否则我在尝试加载时会出错。
svn 在线文档说要手动编辑文件,但是当我这样做时,我在加载过程中遇到校验和错误。必须有更好的方法来做到这一点?
I have an svn dump file which includes the name of the repository in
all the paths. i.e repo/trunk repo/branches repo/tags
转储不包括存储库的名称。它应该只包含此存储库包含的路径。我猜这不是 repo 的名称,而是项目的名称。
The svn documentation online says to hand edit the file but when I do
that I get checksum errors during loading. There must be a better way
to do this?
加载转储后,您可以 svn move
将父目录添加到新存储库的根目录。命令应如下所示:
svn move FROM-URL TO-URL -m "ENTER LOG MESSAGE"
PS 手动修改转储文件是可能的,应该可行。但是,这是一项 non-trivial 任务,我建议您避免它,除非您有特殊情况。
我有一个 svn 转储文件,其中包含所有路径中的存储库名称。 IE repo/trunk repo/branches repo/tags 我正在使用转储文件在另一台服务器上重新创建存储库,但我需要从路径中删除 "repo" 否则我在尝试加载时会出错。
svn 在线文档说要手动编辑文件,但是当我这样做时,我在加载过程中遇到校验和错误。必须有更好的方法来做到这一点?
I have an svn dump file which includes the name of the repository in all the paths. i.e repo/trunk repo/branches repo/tags
转储不包括存储库的名称。它应该只包含此存储库包含的路径。我猜这不是 repo 的名称,而是项目的名称。
The svn documentation online says to hand edit the file but when I do that I get checksum errors during loading. There must be a better way to do this?
加载转储后,您可以 svn move
将父目录添加到新存储库的根目录。命令应如下所示:
svn move FROM-URL TO-URL -m "ENTER LOG MESSAGE"
PS 手动修改转储文件是可能的,应该可行。但是,这是一项 non-trivial 任务,我建议您避免它,除非您有特殊情况。