You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Brad Rhoads <br...@zethcon.com> on 2004/07/15 04:45:43 UTC
Keywords $LastChangedDate$ and $Id$ didn't work
After following the recent threads, I finally see the relationship between
the config file and keyword substitution (and the global-ignores). The
config file only relates to the clients and should be kept in sync.
I made these changes to my config:
### Section for configuring miscelleneous Subversion options.
[miscellany]
### Set global-ignores to a set of whitespace-delimited globs
### which Subversion will ignore in its 'status' output.
global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store *.exe
. . .
enable-auto-props = yes
. . .
[auto-props]
. . .
*.* = svn:keywords="LastChangedDate LastChangedRevision LastChangedBy
HeadURL Id"
I created a new file, added the keywords and did a commit. And it patly
worked. I ended up with:
/*
* $LastChangedDate$
* $LastChangedRevision: 40 $
* $LastChangedBy: brad $
* $HeadURL:
file:///D:/svnroot/synapse/websynapse/trunk/WEB-INF/classes/com/monolith/web
app/Constants_1.java $
* $Id$
*/
But $LastChangedDate$ and $Id$ didn't work. Doesn't the auto-props apply to
them? Do I have a typo? Something else?
I'm using 1.0.5, Win 2003 server, XP client (TortoiseSVN).
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Keywords $LastChangedDate$ and $Id$ didn't work
Posted by Erik <e....@finmatica.com>.
Brad Rhoads wrote:
> But $LastChangedDate$ and $Id$ didn't work. Doesn't the auto-props apply to
> them? Do I have a typo? Something else?
remove the quotes.
you should have a line like this:
*.txt = svn:keywords=URL Rev Date Author
my 0.02€
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org