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

Re: auto-props doesn't seem to be working as advertised

From: John Szakmeister <john_at_szakmeister.net>
Date: 2004-10-06 12:26:18 CEST

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

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.