Yep, sorry bout that, I was worried that the high level script would only be
non-obvious to me :)
I found a script that does svn log parsing, so I simply modified it to
perform the propset. You can my starting point script here:
http://www.brunningonline.net/simon/blog/svnlog.html
Thanks again.
On Thu, Jan 29, 2009 at 7:03 PM, Daniel Becroft <
Daniel.Becroft_at_supercorp.com.au> wrote:
> Remember to keep replies on list.
>
> Hi,
>
> At a high level, it would be something like:
>
> Retrieve a list all the revisions:
> svn log --quiet <URL>
>
> Then do something like:
>
> for each revision:
> set the svn:author property on the revision (svn propset)
>
> Cheers,
> Daniel.
>
> ------------------------------
> *From:* Brian Harris [mailto:medotin_at_gmail.com]
> *Sent:* Friday, January 30, 2009 12:03 PM
> *To:* Daniel Becroft
> *Subject:* Re: change users in repository
>
> Interesting...what would the script look like, at a high level?
>
> On Thu, Jan 29, 2009 at 6:00 PM, Daniel Becroft <
> Daniel.Becroft_at_supercorp.com.au> wrote:
>
>> Hi,
>>
>> You should be able to write a simple script to modify the svn:author
>> revision property for all 'incorrect' revisions. If your repository is
>> large, this might be quicker than a dump/load.
>>
>> Cheers,
>> Daniel B.
>>
>> ------------------------------
>> *From:* Brian Harris [mailto:medotin_at_gmail.com]
>> *Sent:* Friday, January 30, 2009 10:55 AM
>> *To:* users_at_subversion.tigris.org
>> *Subject:* Re: change users in repository
>>
>> Suggestions still welcome, but it looks like I can do this with svn
>> dump and sed.
>> Thanks.
>>
>> On Thu, Jan 29, 2009 at 5:43 PM, Brian Harris <medotin_at_gmail.com> wrote:
>>
>>> Our svn 1.5 repo is filled with commits by usernames with @DOMAIN.COMappended on the end -- this is because the apache configuration we were
>>> using assigned these username suffixes. We are switching to a different
>>> authentication method that will not have @DOMAIN.COM on the end of the
>>> usernames, so I'd like to retroactively remove this suffix from the
>>> historical commits so we won't have multiple usernames for the same person,
>>> IE change all 'joe_at_DOMAIN.COM' usernames on historical commits to 'joe'.
>>>
>>> Is this possible?
>>> Thanks, Brian
>>>
>>
>>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1075614
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-30 18:38:35 CET