1. Takayuki KONDO
  2. thg


thg / simplemerge.bat

:: Win32 batch file to handle to merge with simplemerge for developement of TortoiseHg

@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 :merge)

python "%TortoisePath%\hgutils\simplemerge" %*
goto end

echo hgproc: cannot find TortoiseHg location in the registry.