[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Rewriting the svn:author revprop at commit time

From: Jonathan Ashley <jonathan.ashley_at_praxis-his.com>
Date: Thu, 6 Mar 2008 10:43:26 +0000

Hi, I wonder if anyone could help me answer a question about rewriting the
svn:author revision property?

I have a large number of users who authenticate with sensible logins like
'bert.jones', and who leave nice readable audit trails in the svn log.

For reasons that I can't do much about, I have a small number of users who
authenticate with annoying alphanumeric logins like 'xyzzy42'. These users
leave audit trails that are not so easy to read.

I would _like_ to rewrite the svn:author revision property at commit time,
to convert the annoying names into sensible ones.

Can this be done safely from a post-commit hook? That is, I would use
'svnlook propget repo -r XXX --revprop svn:author' to examine the
svn:author property, then do an 'svn ps -r XXX --revprop svn:author NEWNAME'
to rewrite it if it is one of the annoying ones.


Jon Ashley
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-06 11:44:05 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.