Synchronize an SVN repo (svnsync) with encoding errors

限于喜欢 提交于 2019-12-03 16:06:49

You will need to wait for the next version of Subversion, there is a pending patch to add support for non-UTF8 encodings to svnsync.

Yaoer

You need to modify pre-revprop-change.tmpl

# cp pre-revprop-change.tmpl pre-revprop-change.tmp
# vim pre-revprop-change.tmp
exit 1 ==> exit 0

Otherwise, you may use svnadmin setrevprop to modify the repos

There is an easy fix for this. Change the log entry in the source repository with these statements:

Example with revision 10281 and repository in /home/svn/repos

svn proplist -v --revprop -r 10281 file:///home/svn/repos | iconv --to-code UTF8//IGNORE -o /tmp/iconv.out

svn propset svn:log --revprop -r 10281 -F /tmp/iconv.out file:///home/svn/repos

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