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

Re: pre-lock.bat Failed in Repo browser

From: Michael Diers <mdiers_at_elego.de>
Date: Wed, 09 Mar 2011 11:13:25 +0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2011-03-08 14:04, Bert Huijben wrote:
> I don?t think %VISUALSVN_SERVER% is set in your lock script. Subversion
> explicitly clears most environment variables before calling hook scripts.
>
> Most likely your script can?t find svnlook.exe
[...]

VisualSVN Server actually provides quite a bit of environment to hook
scripts, including VISUALSVN_SERVER.

For example, here's a short pre-unlock hook script that traces
environment information out to a file.

- --- snip snip ---
@echo off
set trc=C:\tmp\waseem\trace.txt

echo === BEGIN pre-unlock >> %trc%

echo REPOS-PATH = %1 >> %trc%
echo PATH = %2 >> %trc%
echo USER = %3 >> %trc%

echo --- %trc%

set >> %trc%%

echo === END pre-unlock >> %trc%

exit 0
- --- snip snip ---

- --
Michael Diers, elego Software Solutions GmbH, http://www.elego.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk13YNUACgkQcEKlWnqVgz05nACgsojGP+bkgWU/F0SLoYEGAZtH
c48Ani3nndBSqRMT1bLYcJodJ0RnpZZS
=a2gx
-----END PGP SIGNATURE-----
Received on 2011-03-09 12:14:17 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.