hgproc.bat
author Germán Póo-Caamaño <gpoo@calcifer.org>
Sun, 20 Jul 2008 09:40:32 -0400
changeset 1180 1c95c2301e5f
parent 361 dfaa2d2e4705
permissions -rwxr-xr-x
nautilus: fix actions when the menu is invoked outside a repository

::
:: Win32 batch file to handle TortoiseHg external proc calls
::

@echo off
setlocal

:: Look in the registry for TortoiseHg location
for /f "skip=2 tokens=3*" %%A in (
    '"reg query "HKEY_LOCAL_MACHINE\SOFTWARE\TortoiseHg" /ve 2> nul"' ) do set TortoisePath=%%B
if "%TortoisePath%"=="" (goto :notfound) else (goto :hgproc)

:hgproc
python "%TortoisePath%\hgproc.py" %*
goto end

:notfound
echo hgproc: cannot find TortoiseHg location in the registry.

:end