You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA" <ar...@navy.mil> on 2006/04/26 16:56:12 UTC

Changing usernames

	Hi,

	I am in the process of moving over an existing
repository. However, I would like to change the usernames
that the committers used to match their new usernames.
	I thought using svn dump to dump repo to a file, changing
the username, and them uploading the file. However, 
the dump tracks the length of the strings so I cannot change
it to longer/shorter usernames.
	How can I change the usernames?
	Thank You.

--
Artur Kedzierski

Re: Changing usernames

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 4/26/06, Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
<ar...@navy.mil> wrote:
>         Hi,
>
>         I am in the process of moving over an existing
> repository. However, I would like to change the usernames
> that the committers used to match their new usernames.
>         I thought using svn dump to dump repo to a file, changing
> the username, and them uploading the file. However,
> the dump tracks the length of the strings so I cannot change
> it to longer/shorter usernames.
>         How can I change the usernames?

The last time I did this it was via a hacked version of svndumptool, a
python script for manipulating dump files.  Alternatively, you could
just use svn pset to change the svn:author revprops on the revisions
in question.

-garrett

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


Re: Changing usernames

Posted by Greg Thomas <th...@omc.bt.co.uk>.
On Wed, 26 Apr 2006 09:56:12 -0700, "Kedzierski, Artur CIV
NAVSURFWARCENDIV CORONA" <ar...@navy.mil> wrote:

>How can I change the usernames?

The following commands will allow you to get and set a username for an
arbitrary revision:

$ svn propget svn:author --revprop -r $revision file://$repository
$ svn propset svn:author --revprop -r $revision $newUsername file://$repository

where $revision, $newUsername, and $repository are the required, err,
revision, username and repository location, respectively. Simply write
a script to get the old username, translate it to the new one, and
then set it again. Run this for every revision in your repository, and
you're sorted.

HTH,

Greg
-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.

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