2017-08-21 39 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