On Wednesday 06 October 2004 01:00, Duncan Palmer wrote:
> Hi,
>
> I've just been setting up a subversion repository for
> a new project, and am having some problems with the
> auto-props feature - I'm trying to enable keyword
> expansion, but it isn't working.
>
> I'm using subversion 1.0.8 on OpenBSD 3.5.
> /etc/subversion/config is attached...
>
> The problem:
>
> I import my source tree, and then check it out.
> Looking at a file (logs.h) gives:
>
> dunk@chaos:base$ svn proplist logs.h
> Properties on 'logs.h':
> svn:keywords "Id"
This isn't right. You've somehow added a property called 'svn:keywords
"Id"', instead of the 'svn:keywords' property with a value of 'Id'.
> svn:eol-style
>
> , but
>
> dunk@chaos:base$ head logs.h
>
> /*
> * $Id$
> *
>
> To get the keyword expansion to work, I must now
>
> dunk@chaos:base$ svn propset svn:keywords "Id"
> logs.h
> property 'svn:keywords' set on 'logs.h'
> dunk@chaos:base$ svn proplist logs.h
> Properties on 'logs.h':
> svn:keywords
The above is correct.
> svn:keywords "Id"
This is incorrect. You should probably do a 'svn pd "svn:keywords \"Id\"
log.h'
> svn:eol-style
>
> Checking in logs.h will now result in the keyword
> expansion working as I'd expect.
>
> Can anyone shed any light on this? Have I got
> something wrong in my config file?
I tried your config file, and it still worked with my installation
(svn-1.1.0-rc1).
However, I don't like the following line:
*.h = svn:eol-style=native;svn:keywords;svn:keywords=Id
should read:
*.h = svn:eol-style=native;svn:keywords=Id
Was you config file different when you did the import? I can get the
problem you were seeing by changing the line to read:
*.h = svn:eol-style=native;svn:keywords "Id"
Perhaps you tried the above when setting up your autoprops configuration?
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 6 12:26:35 2004