I am attempting to modify the author field of our Subversion commits. (We want to change it to user's display name + username in the real svn database, not just in SCM Manager's web UI.)
I am trying to set the author name to "XYZ" in all cases for a test. I am doing commits as the "scmadmin" user. I have been unable to have any effect on the actual value of the changeset author field. (Both using command-line svn log and the SCMM web UI, the author is still set to "scmadmin".)
@Extension
public class SVNUsernamePreCommitHook extends PreReceiveRepositoryHook {
@Override
public void onEvent(RepositoryHookEvent event) {
Collection<Changeset> changesets = event.getChangesets();
for (Changeset changeset : changesets) {
Person p = changeset.getAuthor();
p.setName("XYZ");
}
}
Does this mean that the RepositoryHookEvent object is only informative? that it has no effect on the actual repository data?
thanks in advance!
Valerie