--- a/contrib/win32/hg.bat Thu Jan 22 00:03:58 2015 +0900 +++ b/contrib/win32/hg.bat Thu Jan 22 00:07:06 2015 +0900 @@ -15,3 +15,5 @@ python "%~dp0hg" %* ) endlocal + +exit /b %ERRORLEVEL%