'svn add' does not add 'svn:keywords', but 'svn ci' ask for it

Tim Kientzle kientzle at freebsd.org
Sat Sep 5 00:45:51 UTC 2009


Andrey Chernov wrote:
> 1) svn add some_file
> 2) svn ci some_file
> svn: Commit blocked by pre-commit hook (exit code 1) with output:
> Path ".../some_file" is missing the 
> svn:keywords property (or an fbsd:nokeywords override)
> 
> I manage it adding by hand:
> 3) svn propset svn:keywords 'FreeBSD:%H' some_file
> 
> It isn't convenient. Why 'svn add' can't do it automatically for 
> me using the same detection method as 'svn ci'? 

The "svn ci" check is done on the server, and subversion
does not allow the server checks to change the commit
in any way.  The server-side hooks can only inspect
the commit and choose whether or not to permit it.

The "svn add" command doesn't talk to the server at all;
it only modifies the pending update on the local client.

As I think others have pointed out, the standard
"svn" command-line tool does have an option to
automatically set certain properties depending
on the file type.  I believe this check is only
done for "svn add."

Tim


More information about the freebsd-current mailing list