|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- @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
- 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
|