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

Re: Auto-prop not working?

From: Michael L Brown <michael.l.brown_at_philips.com>
Date: 2005-04-15 19:43:37 CEST

Found the example in the book. It was easy to overlook. Yep, quotes for
command version definately necessary :-)

New import done and checkout being done now. Will see shortly if it
worked.

MB
 --
Mike Brown (Michael.L.Brown@Philips.com)
            Lotus Bloats: Michael L Brown/MSN/MS/PHILIPS
Philips/ADAC, Madison, WI
Desk: 608-288-6969 Fax: 608-298-2101
PMS direct: 164-6969
You design it, I'll build it!

Michael W Thelen <mike@pietdepsi.com>
04/15/2005 11:36 AM
 
        To: users@subversion.tigris.org
        cc: (bcc: Michael L Brown/MSN/MS/PHILIPS)
        Subject: Re: Auto-prop not working?
        Classification:

Michael L Brown wrote:
> The /etc/subversion/config file contains the following:
>
> [miscellany]
> enable-auto-props = yes
>
> [auto-props]
> * = svn:keywords=Id
> * = svn:keywords=LastChangedDate
> * = svn:keywords=Date
> * = svn:keywords=LastChangedRevision
> * = svn:keywords=Rev
> * = svn:keywords=LastChangedBy
> * = svn:keywords=Author
> * = svn:keywords=HeadURL
> * = svn:keywords=URL

If you run "svn proplist -v" on any file you've imported, you'll find
that the svn:keywords property contains only "URL". Each of the lines
above is taken separately, and the last one overrides the others. To
get what you want, do something like this instead:

* = svn:keywords=Id LastChangedDate Date LastChangedRevision

... etc, with everything on a single line separated by spaces. No
quotes are necessary.

Of course, now that everything is already imported into the repository,
those properties will have to be set manually... auto-props only applies
to files as they are newly added. If you're on Linux, I have written a
Perl script that should be able to do that (I just haven't tested in on
Windows). Hope this helps.

http://svn.pietdepsi.com/repos/projects/svn-tools/set-props.pl

--
Michael W Thelen
It is a mistake to think you can solve any major problems just with
potatoes.       -- Douglas Adams


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

Received on Fri Apr 15 19:47:11 2005

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.