[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Apache diff error: invalid xml

From: Daniel <daniel123+svn_at_gmail.com>
Date: 2006-09-22 23:57:03 CEST

> On 9/22/06, Garrett Rooney <rooneg <at> electricjellyfish.net> wrote:
> Ok, Daniel sent me the output of the neon debug trace offline, and
> here's the interesting bit of it:
>
> <D:creator-displayname>NY-S&B\dscharfman</D:creator-displayname>
>
> Note the & in there. What happened here is that somewhere in the
> repository (revision 488 I think) there's a svn:author property that's
> got an ampersand in it, when it should have been encoded. This could
> have happened via several means (a non-DAV client that was buggy, for
> example), but that's neither here nor there.
>
> Now to fix it, I believe the easiest way is to use file:// access to
> the repos and do an svn pset --revprop -r 488 svn:author
> some-name-without-an-ampersand file:///path/to/repos.
>
> -garrett
>

As you say, isn't this a bug in Tortoise? Shouldn't this be filed as a bug with
the Tortoise developers?

Also, as an aside, how could I quickly write a python script using the
subversion APIs, to correct my entire repository of authors?
It really would be a very simple script, just remove that ampersand and make it
NY-SB....but it's for every revision.

I'm not really familiar with the SVN APIs and iterating through every revision
and through every file sounds intimidating if you don't even know how to start.

Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 22 23:58:40 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.