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

setting keywords prop automatically via .subversion/config file?

From: mike south <msouth_at_nandomedia.com>
Date: 2004-05-11 21:47:04 CEST

Hi,

I want every file I add to any repository to have the keywords prop
automatically set. From the svnbook at red-bean, I thought that the
following subversion config entries would do that:

      [msouth@rusr201d msouth]$ grep -v "^#" ~/.subversion/config

      [miscellany]
      enable-auto-props = yes

      [auto-props]
      * = svn:keywords "Author Date Id Rev URL"

      [msouth@rusr201d scratch]$ cat > test_file
      $Id$
      [msouth@rusr201d scratch]$

      [msouth@rusr201d scratch]$ cat test_file
      $Id$
      [msouth@rusr201d scratch]$ svn add test_file
      A test_file
      [msouth@rusr201d scratch]$ svn commit test_file
      Adding test_file
      Transmitting file data .
      Committed revision 5.
      [msouth@rusr201d scratch]$ cat test_file
      $Id$

As you can see from the last "cat" command, $Id$ is still not expanded
in test_file. What I thought I was doing with my .subversion/config was
to turn on auto-props with the "enable-auto-props = yes" line, and then
under the [auto-props] section, set the svn:keywords property to "Author
Date Id Rev URL" for every file matching "*". This does not seem to be
what happens. Am I missing something? I've tried to read the docs and
archives of the list, but I don't see anything relevant.

Another thing I've noticed after some experimentation is that, after I
"svn add" the file, if I do an "svn proplist" on it, it comes back with
this:

Properties on 'test_file3':
   svn:keywords "Author Date Id Rev URL"

If I then do 'svn propset svn:keywords "Author Date Id Rev URL"
test_file3', two things happen--one, keyword expansion starts working,
and two, "svn proplist" gives me:

Properties on 'test_file3':
   svn:keywords
   svn:keywords "Author Date Id Rev URL"

Can anyone shed some light on this for me?

Thanks,

mike

PS: svn --version
svn, version 1.0.2 (r9423)
    compiled Apr 27 2004, 16:24:38

-- 
-----------------------------------------
       Name : Mike South
      Title : Software Developer
    Company : Nando Media
Work Phone : (919) 861-1259
Cell Phone : (919) 622-1857
   Work Fax : (919) 861-1300
Work Email : msouth@nandomedia.com
        AIM : msouthnando
   Web Site : http://www.nandomedia.com/
-----------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 11 21:49:57 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.