2017-08-21 66 views
1

我想要的文件夹从Subversion版本库移动到另一个,同时保持其所有历史的完整,这是我使用的命令:svnrdump:E135007:写入错误管道

svnrdump dump -r0:HEAD http://asvn/original_repo/sub_folder_A | svnrdump load http://asvn/new_repo/sub_folder_A 

转储命令本身运作良好,但是我收到以下错误,当我尝试使用负荷命令:

svnrdump: E175002: DAV request failed; it's possible that the repository's pre-r evprop-change hook either failed or is non-existent svnrdump: E175002: Revprop change blocked by pre-revprop-change hook (exit code 1) with output:

** ERROR-FILES: Unable to get revision (0) file list: 'svnlook.exe: missing argument: r Type 'svnlook help' for usage.'

svnrdump: E135007: Write error in pipe

我发现这个link,并添加了的pre-revprop-change.bat w ^第i个退出0的建议,但我得到一个新的错误:

svnrdump: E175002: DAV request failed; it's possible that the repository's pre-r evprop-change hook either failed or is non-existent

svnrdump: E175002: Revprop change blocked by pre-revprop-change hook (exit code 1) with output:

** ERROR-FILES: Unable to get revision (0) file list: 'svnlook.exe: missing argument: r Type 'svnlook help' for usage.'

有过这个问题,任何的你来了,知道解决的办法呢?

谢谢!

+0

的pre-revprop-change钩子脚本似乎对目标仓库被打破。 – bahrep

+0

@bahrep,我已更新我的问题,并尝试修复pre-revprop更改挂钩脚本错误时遇到的错误。退出0在这种情况下似乎不起作用。 – May

+0

我将在24小时内检查并发布答案。感谢您提供新的信息。 – bahrep

回答

0

I found this link and added a pre-revprop-change.bat with exit 0 as suggested but I am getting a new error:

我猜,你实际上混淆了目标库。您看到的错误来自目标存储库,并且它100%有一个以某种方式损坏的pre-revprop-hook脚本。看来,钩子脚本无效svnlook命令:

svnlook.exe: missing argument: r Type 'svnlook help' for usage.

+0

嗯..在提交pre-revprop-hook脚本提交到目标存储库后收到错误消息。 – May

+0

@我可以100%确定这个脚本有问题。您通常不会将脚本提交到存储库,它必须位于存储库所在的文件系统上的$ repo/hooks目录中。 – bahrep

+0

你是对的,这是钩。我现在可以将负载转储到目标存储库。感谢您的帮助! – May