You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Bill Moseley <mo...@hank.org> on 2007/02/07 18:00:08 UTC
Adding Revision Number to Changes file comment
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.
--
Bill Moseley
moseley@hank.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Adding Revision Number to Changes file comment
Posted by Andy Levy <an...@gmail.com>.
On 2/7/07, Bill Moseley <mo...@hank.org> wrote:
>
> 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.
What prevents you from simply entering this information in the commit
log, and then generating your Changes file for release from the
Subversion log? You'll get the date, time & revision number
automatically.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Adding Revision Number to Changes file comment
Posted by Ramanathan Muthaiah <ru...@gmail.com>.
> 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