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

Re: Commiting file which contains the next revision number

From: Patrick Smears <patrick.smears_at_ensoft.co.uk>
Date: 2004-12-16 18:42:17 CET

On Thu, 16 Dec 2004, Greg Thomas wrote:

> On Thu, 16 Dec 2004 15:39:58 +0100, edA-qa <edA-qa@disemia.com> wrote:
>
> >Is there a way to ...
> >specify a tag in a file such than when the file is committed the tag is
> >replaced with the revision in which it was commited.
>
> Isn't that what the LastChangedRevision/Revision/Rev keyword is for?
>
> http://svnbook.red-bean.com/en/1.0/ch07s02.html#svn-ch-7-sect-2.3.4
>
> When the file is committed, the keyword will be updated with the
> revision number of that commit.

Yes... but then it will be updated next time the file is committed, too (I
think what edA-qa is asking for is a way to have the revision number that
a bugfix/feature is introduced mentioned in a "release notes" file,
updating the "release notes" in the same commit as the bugfix/feature goes
in.

If there is not a requirement for this to go in at the exact same commit,
(eg it may be acceptable to run a script to update the release notes just
before doing a release), then it might be worth considering writing a
script that can generate the release notes from the output of 'svn log'
(you could put specially-formatted comments in the log messages to
indicate that they should be turned into release notes; or indeed I
suppose you could have a separate revision-property for each commit that
specifies the release notes associated with that commit...)

Patrick

-- 
The easy way to type accents in Windows: http://www.frkeys.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 16 18:44:46 2004

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.