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

Re: Keyword insterting into source files

From: Kevin Grover <kogrover_at_yahoo.com>
Date: 2006-04-08 01:12:43 CEST

$WCREV$ and $WCDATE$ are particular to SubWCRev (which comes form TSVN).
They are replaced based on the current WC (Working Copy) status.

General keywords are handled with the svn:keywords property (like $Id$, $Revision$, etc...) by the Subversion library. These are general to all usages of Subversion, whereas the $WC*$ keywords are only for SubWCRev.

The difference are that the general svn keywords are updated on a per-file bases, whereas the $WC*$ keywords are on a 'working copy' basis (notice the WC?).

file.c $Revision: 34 $
file.h $Revision: 6 $
Makefile $Revision: 10 $

Your Working Copy was checked out at Revision 52, however, since then several other people have comitted modifications and you have not (yet) done an update.

Also, you've modified 'file.c' and added 'blah.c'.

The fact that you modified 'file.c' is NOT reflected in it's Revision tag until you commit it.

However, SubWCRev get's the working copies revision and dates. Also, it can indicate that your working copy has been modified.
I know, I should provide concrete examples to clarifiy it --- the lack of these concrete examples is one of the only missing details in the Subversion and TSVN documents. If you need more detail, let me know.

I've been writing some example usage guides for work. They are currently in MS Word format (they made me do it), but I've been thinking about offering to convert them to DocBook XML and as an "Example and Daily Usage Guide" (for the newbies --- like I was at first). Also, you may want to check out William Nagel's book. It has more concrete examples than the Subversion book: http://www.williamnagel.net/svn.php --- there's a link to download the PDF, but it you to look for it.

- Kevin Grover

----- Original Message ----
From: Michael Fritz <spam_athome@yahoo.de>
To: users@tortoisesvn.tigris.org
Sent: Thursday, April 6, 2006 3:47:43 AM
Subject: Keyword insterting into source files


using TSVN with Windows XP, I would like to automatically insert/update
some keywords like $WCREV$ or $WCDATE$. Of course I can use the tool
SubWCRev, but this means I will have to do this manually.

Is there a chance to do this automatically, perhaps when checking in a file
into the repository? Or do I have to use some SVN properties? Are there any
examples using a local repository database with properties?


To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sat Apr 8 01:12:59 2006

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