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

Re: Ignore on commit

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Mon, 31 Aug 2009 05:47:44 -0500

On Aug 31, 2009, at 05:37, Andy Levy wrote:

> On Sun, Aug 30, 2009 at 19:25, Pericius wrote:
>
>> How to always stop particular files (already versioned) from being
>> commited? Yes, I am aware these files should be templates, but that
>> was not my call.
>
> Only by not specifying them as being part of the commit.

You can enforce it on the server side by writing a pre-commit hook. In
it, you could use "svnlook changed" to see if any of your prohibited
files are part of the commit, and if so, reject it. If you want to
allow occasional commits to these files by people who know what
they're doing, you could add mechanisms to allow the commit to happen,
for example based on the username or by checking for a particular
keyword in the log message.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2388836

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-31 12:48:44 CEST

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.