author | Germán Póo-Caamaño <gpoo@calcifer.org> |
Sun, 20 Jul 2008 09:43:33 -0400 | |
changeset 1181 | ab9654ce0550 |
parent 361 | dfaa2d2e4705 |
permissions | -rwxr-xr-x |
154
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
1 |
:: |
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
2 |
:: Win32 batch file to handle TortoiseHg external proc calls |
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
3 |
:: |
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
4 |
|
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
5 |
@echo off |
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
6 |
setlocal |
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
7 |
|
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
8 |
:: Look in the registry for TortoiseHg location |
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
9 |
for /f "skip=2 tokens=3*" %%A in ( |
361
dfaa2d2e4705
setup: install software registry key to HKLM
TK Soh <teekaysoh@yahoo.com>
parents:
154
diff
changeset
|
10 |
'"reg query "HKEY_LOCAL_MACHINE\SOFTWARE\TortoiseHg" /ve 2> nul"' ) do set TortoisePath=%%B |
154
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
11 |
if "%TortoisePath%"=="" (goto :notfound) else (goto :hgproc) |
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
12 |
|
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
13 |
:hgproc |
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
14 |
python "%TortoisePath%\hgproc.py" %* |
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
15 |
goto end |
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
16 |
|
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
17 |
:notfound |
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
18 |
echo hgproc: cannot find TortoiseHg location in the registry. |
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
19 |
|
5673581c8f4f
add win32 batch file to handle external proc calls
TK Soh <teekaysoh@yahoo.com>
parents:
diff
changeset
|
20 |
:end |