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

Re: @abc - Tag...

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-07-28 23:09:46 CEST

On Thu, 2005-07-28 at 21:55 +0100, Max Bowsher wrote:
> >> That would make sense, the command line `svn propset` would require the
> >> quotes to keep the space separated list as a single argument. But that
> >> is a bit of implementation detail that is likely not needed in the
> >> config file.
> >>
> >> Have you tried it w/out quotes?
> >
> > I have not, but without quotes, it will make it very hard to see the
> > leading and traling spaces, which apparently subversion needs to have to
> > properly parse the items in the list.
> No!
> The only reason you 'need' those leading and trailing spaces is *because*
> you've put some bogus quotes into the property value. Otherwise Subversion
> thinks you are asking it to activate keywords named $"Id$ and $Author"$,
> which of course do not exist.
> If you add the spaces, then you have a request to activate $"$, $Id$,
> $Author$ and $"$ again - which does activate $Id$ and $Author$ as you
> intended, but does so in a rather messy way.

Of course, Max is right. Leading and trailing spaces are not needed
which is what I was implying by asking if you had tried it w/o quotes.
This config worked for a simple test.

*.c = svn:eol-style=native;svn:keywords=LastChangedDate
LastChangedRevision URL

Max explained it quite well above for the config file.

If you did a propget on a recently imported file for svn:keywords it
would be interesting to see what is returned. Note that the values
should not be quoted in the output.

To add properties via the command line you would:

        svn propset svn:keywords \
        "LastChangedDate LastChangedRevision URL" <filename>

The quotes here are needed to keep the space separated list as a single
argument to the svn command.

This is what I think you were confusing.


Wireless Group
McMaster University
16:58:58 up 7 days, 2:52, 2 users, load average: 0.19, 0.13, 0.16
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 28 23:13:09 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.