view contrib/win32/hg.bat @ 49314:ec3f88480dbf stable

tests: show that hg log --debug output differs from {file*} template keywords hg log --debug -T xml doesn't differ, but let's test it because we can.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 12 May 2022 13:52:10 +0400
parents fc8a5c9ecee0
children
line wrap: on
line source

@echo off
rem Windows Driver script for Mercurial

setlocal
set HG=%~f0

set PYTHONLEGACYWINDOWSSTDIO=1

rem Use a full path to Python (relative to this script) if it exists,
rem as the standard Python install does not put python.exe on the PATH...
rem Otherwise, expect that python.exe can be found on the PATH.
rem %~dp0 is the directory of this script

if exist "%~dp0..\python.exe" (
    "%~dp0..\python" "%~dp0hg" %*
) else (
    python "%~dp0hg" %*
)
endlocal

exit /b %ERRORLEVEL%