how do I work around this error while copying SVN repository by svnsync?

六月ゝ 毕业季﹏ 提交于 2020-01-01 16:59:11

问题


I am copying a repository by using svnsync and am receiving this error on the same revision every time.

Transmitting file data ...svnsync: REPORT of 'https://svn1.avlux.net/xxxxxx.net': Could not read response body: Secure connection truncated https://svn1.avlux.net)

It is a large revision and I don't have admin access to the server. Is there a way around this, even if it involves checking out and copying the revision manually?


回答1:


Are you just trying to copy the repo once or are you trying to setup an ongoing mirroring scheme?

If it's the former you could let sync go until it fails, then do a diff between the revision it failed on and the previous revision and output that to a file. So if the rev that failed was 135 it would be something like this:

svn diff -r134:135 http://your/repo/url > patch.diff

Then you can apply this patch file to a working copy of the new repo.

patch -p0 -i patch.diff

Then just commit the changes to that working copy and kick off svnsync again.

This is pretty hackish, but it might work.

NOTE: I didn't test any of the commands, there might be some syntax errors, but the general approach should work in theory.




回答2:


I manage to resolved the issue by: - Update (Apache and svn to latest) - Turn on svn V2 protocol (apache config under the location) SVNAdvertiseV2Protocol On



来源:https://stackoverflow.com/questions/227634/how-do-i-work-around-this-error-while-copying-svn-repository-by-svnsync

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!