# HG changeset patch
# User Simon Heimberg <[email protected]>
# Date 1237192422 -3600
# Node ID 9ed5f3e28bc5957fcfc9cfb99cc1363c0385cf2a
# Parent  53871c6c394785e963242bb74c0f2851da5bc55a
add hgtk.bat, modified from original hgproc.bat

diff -r 53871c6c3947 -r 9ed5f3e28bc5 hgtk.bat
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/hgtk.bat  Mon Mar 16 09:33:42 2009 +0100
@@ -0,0 +1,19 @@
+::
+:: Win32 batch file to handle TortoiseHg external hgtk calls
+::
+
+...@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)
+
+python "%TortoisePath%\hgtk" %*
+goto end
+
+:notfound
+echo hgtk: cannot find TortoiseHg location in the registry.
+
+:end


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to