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

Re: keyword substitution

From: Michael W Thelen <thelenm_at_cs.utah.edu>
Date: 2004-07-15 05:02:31 CEST

* Toby Johnson <toby@etjohnson.us> [2004-07-14 20:53]:
> >svn propset svn:keywords "Id"
> >
> >where the files are in different packages ( aka directories )
> >
> >There must be a way to set this keyword globally, isn't there ?
>
> Kinda but not really. You can use autoprops to have every committed file
> (or every file matching a file mask you specify) get the property
> attached, but autoprops have to be set on each client. There's no way to
> specify it server-side.

Additionally, auto-props only cause the property to be set on files or
directories as they are added to the repository. If you want svn:keywords to
be set on files that already exist in the repository, you'll have to set it
yourself for each one. (And unfortunately, as I just found out today, "svn
propset" does not take a URL, so you'll have to check the files out and use
"svn propset" in a working copy.)

-- Mike

-- 
Michael W. Thelen
Nothing astonishes men so much as common sense and plain dealing.
                -- Ralph Waldo Emerson, "Essays"

Received on Thu Jul 15 05:03:47 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.