Tag Archives: subversion

Setting the $Id$ tag in svn

I keep forgetting this so here is a short memo..

To enable the setting of $Id$ edit your ~/.subversion/config and remove the comment or add
enable-auto-props = yes
under [miscellany]
*.php = svn:keywords=Id
under [auto-props]
you can of course add other file types as well, the .php one was just an example.

After this you can run
svn propset svn:keywords Id file.php
to set the value for $Id$ in an existing file. (just remember to add the $Id$ and commit the file..)
Then when you check out the file again you will see somethin similar to this
// $Id: functions.php 22 2010-10-24 12:21:21Z henrik $

There is a lot of other nice things to look at in the subversion config, but this is a good start!

Basically this post keeps me from having to google up pages such as this and go digging in the svn book all the time..
And now I got a chance to share two awesome links as well!


redmine and svn repos

I recently set up browsing of a subversion repository in redmine but kept getting this annoying error:

The entry or revision was not found in the repository.

After a bit of googling and trying various things without success the thing that finally solved it was changing
SVN_BIN = "svn"
SVN_BIN = "/usr/local/bin/svn"
in lib/redmine/scm/adapters/subversion_adapter.rb

Redmine 0.9.6-Stable

This is in FreeBSD, the location of the svn binary you want might of course differ.