I will perform a subversion migration from the built-in authentication against the central LDAP server using sasl. As part of this change, the usernames will be modified, from username
to [email protected]
.
To keep things simple, I'd like to update the authors on all revisions to conform to the same naming scheme. I understand that the author can be changed by allowing revprop changes and changing the svn:author
property using svn propset
:
svn propset --revprop -r revision_number svn:author your_username
However, I'd like to do this using a script, for all revisions.
Is there such a script already available which transforms the svn:author
property according to a preset pattern for all revisions in a repository?
In such cases, I would either dump repository, modify and reload the dump, or use scripting to perform whatever changes required in a loop, i.e., if using Bash -
Replace 1..999 with actual revisions range to apply to.
Assuming you run the script from where the working copy is, you can get the last revision number within the script as well, i.e.:
"svn info" can also be used to retrieve the author of the change: