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

Re: Commiter's IP address in commit comment?

From: Alan Barrett <apb_at_cequrux.com>
Date: 2007-12-21 13:27:50 CET

On Thu, 20 Dec 2007, John Peacock wrote:
> There is no way currently to inject additional meta-data during a commit;
> in fact this is by design. If you were to alter a transaction during a
> commit, the data on the server would not be the same as the data on the
> client, with predictable problems.

Well, you can't change file contents or properties, but a post-commit
hook can change the log message. Get the old message with:

    svnlook propget --revprop -r ${REV} ${REPOSITORY} svn:log

and set the new message with:

    svnadmin setlog --bypass-hooks -r ${REV} ${REPOSITORY} ${TEMPFILE}

--apb (Alan Barrett)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 21 13:40:00 2007

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.