Kiln » TortoiseHg » TortoiseHg
Clone URL:  
simplemerge.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
:: :: Win32 batch file to handle to merge with simplemerge for developement of TortoiseHg :: @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 :merge) :merge python "%TortoisePath%\hgutils\simplemerge" %* goto end :notfound echo hgproc: cannot find TortoiseHg location in the registry. :end