|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- @echo off
- hg incoming "https://bitbucket.org/vdemidov/sas.maps/"
- ::echo %ERRORLEVEL%
- IF ERRORLEVEL 9009 goto NoHg
- IF ERRORLEVEL 2 goto err
- IF ERRORLEVEL 1 goto noupdates
- IF ERRORLEVEL 0 goto ok
- IF ERRORLEVEL -1 goto CloneRepo
-
- goto err
-
- :ok
- echo ࠥ ९
- hg pull "https://bitbucket.org/vdemidov/sas.maps/" -u -f
- IF ERRORLEVEL 1 goto err
- IF NOT ERRORLEVEL 0 goto err
- for /R /D %%d in (*.zmp) do rd /q %%d
- goto end
- :CloneRepo
- rd /s /q sas.maps
- echo ९ ࢥ
- hg clone -U "https://bitbucket.org/vdemidov/sas.maps/" sas.maps
- IF NOT ERRORLEVEL 0 goto err
- echo 㥬 ९ਥ ⥪
- move /Y sas.maps\.hg .\.hg
- IF NOT ERRORLEVEL 0 goto errMoveHg
- echo 塞 ६ ᮧ
- rd /s /q sas.maps
- IF NOT ERRORLEVEL 0 goto errRemoveTemp
- echo 塞 䠩 ᨨ
- hg update -c
- goto end
- :noupdates
- echo
- goto end
- :err
- echo 訡 裡 ࢥ
- goto end
- :errMoveHg
- echo 訡 ६饭 .hg
- goto end
- :errRemoveTemp
- echo 訡 㤠 ६ sas.maps
- goto end
- :NoHg
- echo ⠭ Mercurial
- goto end
- :end
- pause
|