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

RE: change users in repository

From: Daniel Becroft <Daniel.Becroft_at_supercorp.com.au>
Date: Fri, 30 Jan 2009 12:03:56 +1000

Remember to keep replies on list.
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)


        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:

                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.
                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.

                        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.COM appended 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


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-30 03:06:19 CET

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.