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

Re: [PATCH] hook script to require 1.5 client

From: John Gardiner Myers <jgmyers_at_proofpoint.com>
Date: Tue, 02 Dec 2008 12:49:06 -0800

Daniel Shahaf wrote:
> I don't see any script attachment.
>
It had one when I sent it out. I'll attach it inline:

Index: contrib/hook-scripts/require-mergeinfo.pl
===================================================================
--- contrib/hook-scripts/require-mergeinfo.pl (revision 0)
+++ contrib/hook-scripts/require-mergeinfo.pl (revision 0)
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+
+# require-mergeinfo.pl: check that the committing client supports the
+# mergeinfo capability
+#
+# Usage: require-mergeinfo.pl CAPABILITIES
+#
+# To enable, add the following line to the repository's start-commit hook:
+#
+# require-mergeinfo.pl "$3" || exit 1
+#
+
+exit 0 if grep { $_ eq 'mergeinfo' } split ':', $ARGV[0];
+print STDERR "Your client is too old to commit to this repository.\n";
+print STDERR "A version 1.5 or later client is required.\n";
+exit 1;

Property changes on: contrib/hook-scripts/require-mergeinfo.pl
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=961109
Received on 2008-12-02 21:50:07 CET

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