You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Duncan Palmer <du...@yahoo.com> on 2004/10/06 05:00:04 UTC
auto-props doesn't seem to be working as advertised
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"
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
svn:keywords "Id"
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?
Cheers,
Dunk
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
Re: auto-props doesn't seem to be working as advertised
Posted by Duncan Palmer <du...@yahoo.com>.
--- John Szakmeister <jo...@szakmeister.net> wrote:
> 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
oops - the middle svn:keywords was left over from my
messing about...
>
> 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?
I've just tried it again from scratch, and you're
right - I must have mixed up config files when doing
the import. I initially imported using
*.h = svn:eol-style=native;svn:keywords
, then (following http://svnbook.red-bean.com/, which
in fairness doesn't really spec the syntax of this
part of the config file)
*.h = svn:eol-style=native;svn:keywords "Id"
, then (I thought)
*.h = svn:eol-style=native;svn:keywords=Id
The last config works correctly for me now.
Thanks for your help,
Dunk
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: auto-props doesn't seem to be working as advertised
Posted by John Szakmeister <jo...@szakmeister.net>.
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