Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
udpated answer - responding to questions in comments
Source Link

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 -

for i in {1..999} do svn propset --revprop -r $i svn:author your_username done 

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

REV=`svn info | grep Revision: | cut -c11-` for ((i=0; i<=${REV}; i++)) do svn propset --revprop -r $i svn:author your_username done 

"svn info" can also be used to retrieve the author of the change:

svn info -r revnum | grep 'Last Changed Author:' | cut -c22- 

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 -

for i in {1..999} do svn propset --revprop -r $i svn:author your_username done 

Replace 1..999 with actual revisions range to apply to.

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 -

for i in {1..999} do svn propset --revprop -r $i svn:author your_username done 

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

REV=`svn info | grep Revision: | cut -c11-` for ((i=0; i<=${REV}; i++)) do svn propset --revprop -r $i svn:author your_username done 

"svn info" can also be used to retrieve the author of the change:

svn info -r revnum | grep 'Last Changed Author:' | cut -c22- 
Source Link

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 -

for i in {1..999} do svn propset --revprop -r $i svn:author your_username done 

Replace 1..999 with actual revisions range to apply to.