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

Re: Adding Revision Number to Changes file comment

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-02-08 00:50:44 CET

On Feb 7, 2007, at 15:53, Jeff Smith wrote:

> On Wednesday 07 February 2007 14:46, Jeff Smith wrote:
>> Well that's the trick... ya don't know yet.
>
> Actually the biggest technical problem with using pre-commit script is
> that it does not know whether someone else is committing
> simultaneously and I don't know the details whether you could
> preserve (lock) a revision number for yourself so the other person
> doesn't take the number you were expecting while modifying the file.

Do NOT modify any file in a pre-commit hook. The server has no way of
informing the client that such a modification has taken place, and
then the server's idea of what the revision looks like is different
from the client's, which will lead to badness. So do not do this.

Bill, I don't think there's any way to do what you want in
Subversion. May I recommend that you record your changes in the svn
commit log as usual, then later, when you want to cut a release, you
can create a changelog from the Subversion log, for example using a
tool like svn2cl?

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 8 00:51:16 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.