HI have 3 WinXP computers which access subversion based on a linux server. I would like to change the author name displayed in the logs on a couple of the computers cause they are 'development pc 3' and the name of an old employee. How do I do this?
Ask TSVN to "show log", in the change log order all commits by author, then select all the commits by the author of interest and use "Edit author".
You'd change the author name in the repository, not on the individual client computers...
Tortoise SVN has an edit author capability in the right click context menu on the log window.
Hi David,
Most likely you've tried changing the author name like sharptooth suggested, but then you probably received and error message stating that you couldn't. This requires the implicit use of the pre-revprop-change hook. By default this hook will always return an error unless you actually override the template and make an actual script that is capable of returning a zero value. From svn-book:
The pre-revprop-change hook is run immediately prior to the modification of a revision property when performed outside the scope of a normal commit. Unlike the other hooks, the default state of this one is to deny the proposed action. The hook must actually exist and return a zero exit value before a revision property modification can happen.
Here's a copy of my pre-revprop-change hook which allows me to edit the log message, but not the author:
REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"
if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
# if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:author" ]; then exit 0; fi
echo "Changing revision properties other than svn:log and is prohibited" >&2
exit 1
To be able to change the author on a given revision, you would need to uncomment the second if
statement.
-Zachary
Hi Everyone, Even though the script is same as above mentioned one we are not able to edit the log massage in SVN.
Thanks in advance.