[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Is it possible to set svn:keywords using pre-commit hook script?

From: vinay i <vinay.indresh_at_gmail.com>
Date: Tue, 18 Nov 2008 21:42:11 +0530

Hello All,

.subversion/config file is created the 1st time we run a svn command. I
believe the default values what it takes is controlled by "
http://svn.collab.net/repos/svn/trunk/subversion/include/svn_config.h" file.
Correct me if I am worng. Can we modify this file or whichever is
appropriate so that whenever a user runs the svn command for the 1st time a
default customized config file is created. Say which has the svn:mime, svn
editor, svn:keyowrds and other useful properties set to some default other
than provided by subversion? Has anyone tried this method?

Thanks
Vinay

On Wed, Nov 12, 2008 at 12:50 AM, Bill Hoffman <bill.hoffman_at_kitware.com>wrote:

> vinay i wrote:
>
>> But isn't there a way I can set the svn:keywords by running a script
>> whenever I do a add or probably before a commit. Controlling this from a
>> client side is painful. Hence, I would like to write script which will run
>> svn propset svn:keywords <filenames>. But I am not sure whether it is
>> feasible.
>>
>> See the thread I started about three weeks ago on this list titled:
>
> "svn config file and mime types"
>
> http://svn.haxx.se/users/archive-2008-10/0707.shtml
>
>
> IMO, this is a major short falling of svn. It is also a long standing
> feature request:
>
> http://subversion.tigris.org/issues/show_bug.cgi?id=1974
>
> Having each client specify this stuff is really hard to enforce and very
> error prone. It really should be part of the repository and stored in the
> .svn directories for a project. I realize there are some technical hurdles
> to the implementation, but the current situation is a real pain...
>
> -Bill
>
Received on 2008-11-18 17:12:36 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.