Syncronize an SVN repo (svnsync) with encoding errors

Posted by Hamish on Stack Overflow See other posts from Stack Overflow or by Hamish
Published on 2011-01-15T22:01:42Z Indexed on 2011/01/15 22:53 UTC
Read the original article Hit count: 295

Filed under:
|
|

Is it possible to fix/bypass non-UTF8 encoded svn:log records when syncronizing repositories with svnsync?

Background

I'm in the process of taking over the maintenance of an open source module that is stored within a large (well over 10,000 revisions) subversion (1.5.5) repository. I do not have admin access to the remote repository to dump/filter/load the module. The old repository is being discontinued and I am trying to sync the original sub module to my local (1.6+) repository with svnsync. For example:

svnsync file://home/svn/temp-repo/ http://path.to.repo/modulename/

The problem is that the old repository didn't enforce UTF8 encoding and I'm hitting errors like:

svnsync: Cannot accept 'svn:log' property because it is not encoded in UTF-8

I can't modify the log property in the source repository so I need to somehow modify or ignore the property value when the encoding is unknown/invalid.

Any ideas? For example, is it possible to write a pre-revprop-change script to modify the log property in transit?

© Stack Overflow or respective owner

Related posts about svn

Related posts about utf-8