[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: Ramanathan Muthaiah <rus.cahimb_at_gmail.com>
Date: 2007-02-07 19:44:44 CET

> When I make a change to some code I also make a note in the Changes
> file. I'd like to included with this note the revision number. Of
> course, I don't know the number yet because the change hasn't been
> checked in yet.
>
> That is, I'd like to be able to type:
>
> Wed Feb 7 17:50:46 UTC 2007
> Patch provided by foo to fix nasty bug. Fixed in rev $Rev.
>
> and then at checkin have $Rev set to the revision number so after that
> point the revision number is plain text and no longer a variable.

Assuming, you have one SINGLE change file, here is my suggestion, to
script this:

<script> /path/to/changefile /path/to/changedfile

Within your script, you can code SVN commands to extract the $Rev
number of changed file.

HTH,

/Ram

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 7 19:45:13 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.