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

From: Tim Kientzle <kientzle_at_freebsd.org>
Date: Fri, 04 Sep 2009 17:45:48 -0700
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
Received on Fri Sep 04 2009 - 22:45:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:54 UTC