You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jonathan Ashley <jo...@praxis-his.com> on 2008/03/06 10:43:26 UTC

Rewriting the svn:author revprop at commit time

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.

regards,
--
Jon Ashley

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Rewriting the svn:author revprop at commit time

Posted by Kyle George <kg...@tcpsoft.com>.
On Thu, 6 Mar 2008, Jonathan Ashley wrote:

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

http://svn.haxx.se/dev/archive-2007-04/0741.shtml

-- 
Kyle George

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: RE: Rewriting the svn:author revprop at commit time

Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
You're absolutely right Nick. I'm sorry for any confusion.

Giulio

> 
 
 
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851     VAT Reg No 778499447
 
-----Original Message-----
 

> From: Nick.Thompson@infineon.com [mailto:Nick.Thompson@infineon.com]
> Sent: 06 March 2008 11:45
> To: Giulio Troccoli
> Subject: RE: RE: Rewriting the svn:author revprop at commit time
> 
> 
> 
> > -----Original Message-----
> > From: Giulio Troccoli
> > Sent: 06 March 2008 11:37
> >
> > Dear Jonathan,
> >
> > I'm doing it all the time. I'm actually rewirting the svn:log
> > and svn:eol-style properties but the logic is the same. Of
> > course you will have a new revision, i.e. you will need to
> > commit again.
> >
> > Hope this helps
> > Giulio
> 
> svn:log and svn:author are revision properties. You change them in an
> existing revision and no need to commit again. Changing svn:eol-sytle
on
> a file probably does require a commit though.
> 
> Nick.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Rewriting the svn:author revprop at commit time

Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
Dear Jonathan,

I'm doing it all the time. I'm actually rewirting the svn:log and
svn:eol-style properties but the logic is the same. Of course you will
have a new revision, i.e. you will need to commit again.

Hope this helps
Giulio

> 
 
 
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851     VAT Reg No 778499447
 
-----Original Message-----
 

> From: Jonathan Ashley [mailto:jonathan.ashley@praxis-his.com]
> Sent: 06 March 2008 10:43
> To: 'users@subversion.tigris.org'
> Subject: Rewriting the svn:author revprop at commit time
> 
> 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.
> 
> regards,
> --
> Jon Ashley
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org