How to write a pre-commit hook script that disallows UAD to project tags?
From: Grant Rettke <grettke_at_acm.org>
Date: 2006-09-08 23:42:42 CEST
Hi,
I've got a pre-commit hook script (in perl) that prohibits updates and
Do you think it would be possible to do so in a single script?
I have yet to look deeply into this.
Here is my current script for disallowing updates and deletes.
$repository = $ARGV[0];
$svnlook = "/usr/bin/svnlook";
$change_cmd = $svnlook . " changed " . $repository . " -t " . $transaction;
@changes = `$change_cmd`;
foreach $change (@changes) {
"\n***\n" .
exit 1;
exit 0;
---------------------------------------------------------------------
|
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.