-----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-----

Reply via email to