contrib/win32/hg.bat
author Steve Borho <steve@borho.org>
Sun, 12 Jul 2009 00:46:43 -0500
changeset 9118 78e54b9f3a62
parent 6513 66e87c11447d
child 12653 5096faaa280e
permissions -rw-r--r--
cmdutil: fall back to filename if glob expand has errors On Windows, Mercurial tries to glob expand provided filenames as a convenience to the user. Unfortunately, there are valid filenames which are not valid glob patterns. In those cases, we should fallback to the original provided filename.

@echo off
rem Windows Driver script for Mercurial

setlocal
set HG=%~f0

rem Use a full path to Python (relative to this script) as the standard Python
rem install does not put python.exe on the PATH...
rem %~dp0 is the directory of this script

%~dp0..\python "%~dp0hg" %*
endlocal