Page 1 of 1
Keyword expansion in svn not working
Posted: Thu Apr 19, 2007 9:41 pm
by spacemonkey
When adding svn keywords like $Id:$ to svn, I notice that they are not getting expanded. Is there a setting that I must do for each project, or is there a better way of making keyword expansion work in svn?
Example:
http://joomlacode.org/gf/project/jmemca ... iew=markup
Re: Keyword expansion in svn not working
Posted: Fri Apr 20, 2007 11:29 am
by Schlu
Did you set the keywords property to your files and modified your subversion config file?
Code: Select all
### Set enable-auto-props to 'yes' to enable automatic properties
### for 'svn add' and 'svn import', it defaults to 'no'.
### Automatic properties are defined in the section 'auto-props'.
enable-auto-props = yes
### Section for configuring automatic properties.
[auto-props]
### The format of the entries is:
### file-name-pattern = propname[=value][;propname[=value]...]
### The file-name-pattern can contain wildcards (such as '*' and
### '?'). All entries which match will be applied to the file.
### Note that auto-props functionality must be enabled, which
### is typically done by setting the 'enable-auto-props' option.
*.txt = svn:keywords=Id
*.php = svn:keywords=Id
schlu
Re: Keyword expansion in svn not working
Posted: Fri Apr 20, 2007 1:31 pm
by Jonah
the keywords are replaced client side then? So the repository remains unaware of the keywords, is that correct?
Re: Keyword expansion in svn not working
Posted: Fri Apr 20, 2007 1:49 pm
by Schlu
Yepp, they will be replaced during the export. Think I misunderstood the question. Would be interesting to know this also.