@echo off
hg incoming "https://bitbucket.org/garl/plus.maps/"
::echo %ERRORLEVEL%
IF ERRORLEVEL 9009 goto NoHg
IF ERRORLEVEL 2 goto err
IF ERRORLEVEL 1 goto noupdates
IF ERRORLEVEL 0 goto ok

goto err

:ok
        echo ‡ ¡¨à ¥¬ ¨§¬¥­¥­¨ï ¨§ ९®§¨â®à¨ï
        hg pull "https://bitbucket.org/garl/plus.maps/" -u -f
        IF ERRORLEVEL 1 goto err
        IF NOT ERRORLEVEL 0 goto err
rem        call BuildZMmp.cmd
        goto end
:noupdates
        echo ¥â ­®¢ëå ¨§¬¥­¥­¨©
        goto end
:err
        echo Žè¨¡ª  á¢ï§¨ á á¥à¢¥à®¬
        goto end
:NoHg
        echo ¥ ãáâ ­®¢«¥­ Mercurial
        goto end
:end
pause