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

Re: How to get Tortoise to update author,Revision,Date, Source

From: Robert Roessler <robertr_at_rftp.com>
Date: 2007-08-11 05:05:37 CEST

blewis999 wrote:
> Robert Roessler wrote:
>> blewis999 wrote:
>>> I am new to Tortoise SVN and used to use Tortoise CVS although I had
>>> a very minimal grasp of that system. I used to be able to have
>>> Tortoise CVS update the following into the files if there were
>>> certain delimiters in the code. Is there a way to do this in SVN. I
>>> have looked through the documentation but can't see the entries.
>>>
>>> This really is an awesome program; it has saved me many times.
>>>
>>> $Author: Copyright iMn MicroControl Ltd. - Robert Lewis$
>>> $Revision: 1.23 $
>>> $Date: 2007/06/20 03:11:52 $
>>> $Source:
>>> G:/cvsrepo-may-30-2005/FreescaleDemo/Common/lcdDispFcns.c,v $
>>
>> Sure, check out Chapter 3 of the SVN book: "Keyword Substitution".

> Thank you; I found this but it seems that there is another program to
> run from a command line called SubWCRev.exe
>
> This would be a lot of work for me as there are dozens of files in the
> build. Is there anyway to get SVN to do this automatically for each file
> when they are committed? It would be very problematic for me to try and
> create multiple versions of the file (source and destination) for all
> the changed files and get it right. Plus it would mess up the build
> system because I would have to have different names and change them in
> the build each time.

No, the SVN "Keyword Substitution" facility is the analog of what you
are used to from CVS... SubWCRev is different, with a different use.

SubWCRev effectively allows you to query some of the repo/wc meta-data
from outside of SVN. The classic case is to have it insert the
highest rev# of all the files in a WC into a file that is used by your
build process, thus giving you a "revision number" to show in, say, an
About box.

As you may have noticed, SubWCRev is part of TSVN, not SVN itself, and
so is documented in the TSVN help.

Robert Roessler
robertr@rftp.com
http://www.rftp.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sat Aug 11 05:04:38 2007

This is an archived mail posted to the TortoiseSVN Users mailing list.