You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rob Shepherd <ro...@informatics.bangor.ac.uk> on 2004/05/27 14:19:59 UTC

Multiple Keywords in [auto-props]

Good Afternoon [GMT+1] List!

from the book... (svnbook.red-bean.com)

I see the correct way to manually set keywords is

svn propset svn:keywords "LastChangedDate Author" weather.txt

hereby setting 2 keywords LastChangedDate AND Author to be substituted.

I am unsure of the correct syntax for acheiving this in the auto-props section

for 1 keyword the book shows..

PATTERN = PROPNAME=PROPVALUE

so should I use in [auto-props]

A]	*.java = svn:keyword=LastChangedDate
	*.java = svn:keyword=Author

B]	*.java = svn:keyword="LastChangedDate Id"

C]	Like B. But without ""

D]	*.java = svn:keyword=LastChangedDate;svn:keyword=Author

Kindest regards

Rob

-- 
/**
  *	Rob Shepherd,
  *	University Of Wales, Bangor,
  *	School of Informatics,
  *	Dean Street,
  *	Bangor,
  *	Gwynedd, UK     /\  /\
  * 	LL57 1UT       /  \/  \ /\
  * 	--------------/---/    \--\----
  *
  *	robshep@informatics.bangor.ac.uk
  *
  * 	+44 (0) 1248 38 27
  */

Re: Multiple Keywords in [auto-props]

Posted by John Peacock <jp...@rowman.com>.
Rob Shepherd wrote:

> I am unsure of the correct syntax for acheiving this in the auto-props 
> section

Did you try any of these?  Just set up a temporary repository and bang away on 
it when you have questions like this.

> so should I use in [auto-props]
> 
> A]    *.java = svn:keyword=LastChangedDate
>     *.java = svn:keyword=Author

This will set Author only (or rather will set both sequentially, which has the 
same effect).

> 
> B]    *.java = svn:keyword="LastChangedDate Id"

This doesn't work at all.

> 
> C]    Like B. But without ""

This is the one that worked for me.

> 
> D]    *.java = svn:keyword=LastChangedDate;svn:keyword=Author

This will set Author only (for the same reason as A).

More over, this works fine too:

*.java = svn:keyword=LastChangedDate Id;svn:svn:executable

will set both of the keywords for expansion, as well as flag the file as 
executable (not that useful here).

HTH

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org