Date: Fri, 04 Sep 2009 17:45:48 -0700 From: Tim Kientzle <kientzle@freebsd.org> To: Andrey Chernov <ache@nagual.pp.ru>, current@freebsd.org, lev@freebsd.org Subject: Re: 'svn add' does not add 'svn:keywords', but 'svn ci' ask for it Message-ID: <4AA1B4BC.2080306@freebsd.org> In-Reply-To: <20090904055607.GA89117@nagual.pp.ru> References: <20090904055607.GA89117@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AA1B4BC.2080306>