1. Steve Test
  2. My test repo


My test repo / hg.bat

:: Win32 batch file to handle TortoiseHg external proc calls

@echo off

:: 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 :run)

python "%TortoisePath%\hg" %*
goto end

echo hgproc: cannot find TortoiseHg location in the registry.