You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Julien TOUCHE <ju...@lycos.com> on 2006/08/22 20:16:37 UTC

rename user

i have a http repository for which i want to rename user and maybe
migrate to svn+ssh.
how does svn handle id so i can preserve the history/log ?

thanks
Regards

		Julien

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: rename user

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Aug 23, 2006, at 06:12, Kevin Grover wrote:

> You can run svnadmin dump on the repository, look through it ..  
> it's straight forward

Gosh, that sounds cumbebrsome to me. It would take the repository  
offline, in any case. If you can do that, fine, but a less-invasive  
solution would be to simply set a pre-revprop-change hook to allow  
changes to revision properties, then just "svn propset svn:author  
$NEW_AUTHOR -r $REV $REPO" for each $REV that was committed by this  
author. Something like "svn log $REPO | grep $OLD_AUTHOR" can show  
you which revisions those are.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: rename user

Posted by Kevin Grover <ko...@yahoo.com>.
You can run svnadmin dump on the repository, look through it .. it's straight forward

You will see lines like this

K 10
svn:author
V 6
grover

K 10 = Keyword, 10 characters
next line holds the keyword: "svn:author"

You search for those and modify the following two lines
V 6
grover

V 6 = value, 6 characters.  NOTE: in your case the 6 will be deferent and you'll need to change it
grover === the value (my user name from my dump file)

So, say I have

K 10
svn:author
V 5
guest

I could change all "V 5\nguest\n" to "V 6\ngrover\n" to change them.  Or to be even more sure, include "V 10\nsvn:author\n" in the search/replace strings, in case "guest" happens to be the value of another property.

 Then, you "svnadmin load" the modified file into a new repository
 
I did this quickly in emacs long ago and it worked well.

NOTE: keep a prisine copy of the dump file around until you've verified that you haven't hosed it up

----- Original Message ----
From: Julien TOUCHE <ju...@lycos.com>
To: "users@subversion.tigris.org" <us...@subversion.tigris.org>
Sent: Tuesday, August 22, 2006 1:16:37 PM
Subject: rename user


i have a http repository for which i want to rename user and maybe
migrate to svn+ssh.
how does svn handle id so i can preserve the history/log ?

thanks
Regards

        Julien

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org