|
@@ -2,27 +2,49 @@ |
|
|
hg incoming "https://bitbucket.org/sas_team/sas.plus.maps/"
|
|
|
hg incoming "https://bitbucket.org/sas_team/sas.plus.maps/"
|
|
|
::echo %ERRORLEVEL%
|
|
|
::echo %ERRORLEVEL%
|
|
|
IF ERRORLEVEL 9009 goto NoHg
|
|
|
IF ERRORLEVEL 9009 goto NoHg
|
|
|
|
|
|
IF ERRORLEVEL 255 goto CloneRepo
|
|
|
IF ERRORLEVEL 2 goto err
|
|
|
IF ERRORLEVEL 2 goto err
|
|
|
IF ERRORLEVEL 1 goto noupdates
|
|
|
IF ERRORLEVEL 1 goto noupdates
|
|
|
IF ERRORLEVEL 0 goto ok
|
|
|
IF ERRORLEVEL 0 goto ok
|
|
|
|
|
|
IF ERRORLEVEL -1 goto CloneRepo
|
|
|
|
|
|
|
|
|
goto err
|
|
|
goto err
|
|
|
|
|
|
|
|
|
:ok
|
|
|
:ok
|
|
|
echo Забираем изменени� из репозитори�
|
|
|
|
|
|
|
|
|
echo ‡ ¡¨à ¥¬ ¨§¬¥¥¨ï ¨§ ९®§¨â®à¨ï
|
|
|
hg pull "https://bitbucket.org/sas_team/sas.plus.maps/" -u -f
|
|
|
hg pull "https://bitbucket.org/sas_team/sas.plus.maps/" -u -f
|
|
|
IF ERRORLEVEL 1 goto err
|
|
|
IF ERRORLEVEL 1 goto err
|
|
|
IF NOT ERRORLEVEL 0 goto err
|
|
|
IF NOT ERRORLEVEL 0 goto err
|
|
|
rem call BuildZMmp.cmd
|
|
|
|
|
|
|
|
|
for /R /D %%d in (*.zmp) do rd /q %%d 2> nul
|
|
|
|
|
|
goto end
|
|
|
|
|
|
:CloneRepo
|
|
|
|
|
|
rd /s /q sas.plus.maps
|
|
|
|
|
|
echo „¥« ¥¬ ª«® ९®§¨â®à¨ï á á¥à¢¥à
|
|
|
|
|
|
hg clone "https://bitbucket.org/sas_team/sas.plus.maps/" sas.plus.maps
|
|
|
|
|
|
IF NOT ERRORLEVEL 0 goto err
|
|
|
|
|
|
echo Š®¯¨à㥬 ¯ ¯ªã á ९®§¨â®à¨¥¬ ¨§ ¯®¤¯ ¯ª¨ ¢ ⥪ãéãî ¯ ¯ªã
|
|
|
|
|
|
move /Y sas.plus.maps\.hg .\.hg
|
|
|
|
|
|
IF NOT ERRORLEVEL 0 goto errMoveHg
|
|
|
|
|
|
echo “¤ «ï¥¬ ¢à¥¬¥® ᮧ¤ ãî ¯®¤¯ ¯ªã
|
|
|
|
|
|
rd /s /q sas.plus.maps
|
|
|
|
|
|
IF NOT ERRORLEVEL 0 goto errRemoveTemp
|
|
|
|
|
|
echo Ž¡®¢«ï¥¬ ä ©«ë ¤® ¯®á«¥¤¥© ¢¥àᨨ
|
|
|
|
|
|
hg update -c
|
|
|
goto end
|
|
|
goto end
|
|
|
:noupdates
|
|
|
:noupdates
|
|
|
echo �ет новых изменений
|
|
|
|
|
|
|
|
|
echo �¥â ®¢ëå ¨§¬¥¥¨©
|
|
|
goto end
|
|
|
goto end
|
|
|
:err
|
|
|
:err
|
|
|
echo Ошибка �в�зи � �ервером
|
|
|
|
|
|
|
|
|
echo Žè¨¡ª á¢ï§¨ á á¥à¢¥à®¬
|
|
|
|
|
|
goto end
|
|
|
|
|
|
:errMoveHg
|
|
|
|
|
|
echo Žè¨¡ª ¯¥à¥¬¥é¥¨ï ¯ ¯ª¨ .hg
|
|
|
|
|
|
goto end
|
|
|
|
|
|
:errRemoveTemp
|
|
|
|
|
|
echo Žè¨¡ª 㤠«¥¨ï ¢à¥¬¥®© ¯ ¯ª¨ sas.plus.maps
|
|
|
goto end
|
|
|
goto end
|
|
|
:NoHg
|
|
|
:NoHg
|
|
|
echo �е у�тановлен Mercurial
|
|
|
|
|
|
|
|
|
echo �¥ ãáâ ®¢«¥ Mercurial
|
|
|
goto end
|
|
|
goto end
|
|
|
:end
|
|
|
:end
|
|
|
pause |
|
|
pause |