Commits

Anonymous committed 5673581

add win32 batch file to handle external proc calls

  • Participants
  • Parent commits 98807a6

Comments (0)

Files changed (1)

+::
+:: 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_CURRENT_USER\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