Wednesday, June 03, 2009

Subversion keywords: svn propset

While commiting file into subversion you can get following error:

File: trunk/etc/init.d/apache-local
Appears to be a text file, yet it does not allow RCS Id substitution.
Sorry, this is a rule. Please fix svn:keywords.


Solution

svn propset 'svn:keywords' 'Author Date Id Revision' file-name


Shell alias

alias svnpropset='svn propset '\''svn:keywords'\'' '\''Author Date Id Revision'\'''


Other examples

set file executable flag:
svn propset 'svn:executable' 1 filename


Another svn task: list files which will be altered by further svn update
svn st -u


No comments: