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

RE: Keywords and subWCRev

From: awoodjetts <adam.woodjetts_at_rentokil-initial.com>
Date: 2007-07-18 10:48:52 CEST

Great. Now I don't feel stupid, because that is EXACTLY what I have done!
However it is still not being expanded or updated! I will go through and
check spelling etc etc.

I'll look in the book for other options like date to see if that works.

One thing did worry me though. You referred to a plain text document... does
that include MS Word, or have I just identified why its not performing as
expected?

-----Original Message-----
From: Simon Large [mailto:simon.tortoisesvn@googlemail.com]
Sent: 18 July 2007 09:39
To: users@tortoisesvn.tigris.org
Subject: Re: Keywords and subWCRev

On 18/07/07, awoodjetts <adam.woodjetts@rentokil-initial.com> wrote:
> I am looking to use keywords, but was left under the impression that I had
> to also run subwcrev to include the "keywords" (ie the revision number) in
> the documents.

No. As I said in my first reply, SubWCRev and keywords are completely
separate and have different functions.

The documentation for keywords is here:
http://svnbook.red-bean.com/en/1.2/svn.advanced.props.html#svn.advanced.prop
s.special.keywords

For each file that you want keywords to be used in you have to set the
property svn:keywords to include the specific keywords you want to be
expanded.

TortoiseSVN->properties->add
Select svn:keywords
Add property names (case-sensitive) on-per-line in the 'value' box. eg.
Date
Revision

In your document (assuming it is a plain text document) include
$Revision$ in the text.

Commit the changes.

The keywords in your doc will be expanded to show the last commit
revision of the file as it exists in your working copy

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Wed Jul 18 10:48:04 2007

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