You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Scott Plumlee <sc...@gmail.com> on 2007/02/09 16:21:49 UTC

pre-commit hook scripts using batch file and Perl on windows

I"m having problems getting a pre-commit hook script running.
Inspired by this bash script:
http://svn.haxx.se/users/archive-2005-12/0596.shtml

I'm a Perl newbie, so that part may be poorly written. I want to see
if a lock has been set on a file(s) before allowing a commit. The
batch file runs (as far as I can tell), but it doesn't appear that
Tortoise svn ever gets the error message from the batch file, as the
commit goes through each time without a lock.

In the hooks directory are the two attached files, one as a batch file
and the other as a perl script (renamed as I kept having problem
sending).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Fwd: pre-commit hook scripts using batch file and Perl on windows

Posted by Scott Plumlee <sc...@gmail.com>.
Please ignore the previous message, did not mean to send.

---------- Forwarded message ----------
From: Scott Plumlee <sc...@gmail.com>
Date: Feb 9, 2007 11:21 AM
Subject: pre-commit hook scripts using batch file and Perl on windows
To: users@subversion.tigris.org


I"m having problems getting a pre-commit hook script running.
Inspired by this bash script:
http://svn.haxx.se/users/archive-2005-12/0596.shtml

I'm a Perl newbie, so that part may be poorly written. I want to see
if a lock has been set on a file(s) before allowing a commit. The
batch file runs (as far as I can tell), but it doesn't appear that
Tortoise svn ever gets the error message from the batch file, as the
commit goes through each time without a lock.

In the hooks directory are the two attached files, one as a batch file
and the other as a perl script (renamed as I kept having problem
sending).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org