You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 line
1.3 KiB

  1. @echo off
  2. hg incoming "https://bitbucket.org/vdemidov/sas.maps/"
  3. ::echo %ERRORLEVEL%
  4. IF ERRORLEVEL 9009 goto NoHg
  5. IF ERRORLEVEL 2 goto err
  6. IF ERRORLEVEL 1 goto noupdates
  7. IF ERRORLEVEL 0 goto ok
  8. IF ERRORLEVEL -1 goto CloneRepo
  9. goto err
  10. :ok
  11. echo ‡ ¡¨à ¥¬ ¨§¬¥­¥­¨ï ¨§ ९®§¨â®à¨ï
  12. hg pull "https://bitbucket.org/vdemidov/sas.maps/" -u -f
  13. IF ERRORLEVEL 1 goto err
  14. IF NOT ERRORLEVEL 0 goto err
  15. goto end
  16. :CloneRepo
  17. rd /s /q sas.maps
  18. echo „¥« ¥¬ ª«®­ ९®§¨â®à¨ï á á¥à¢¥à 
  19. hg clone -U "https://bitbucket.org/vdemidov/sas.maps/" sas.maps
  20. IF NOT ERRORLEVEL 0 goto err
  21. echo Š®¯¨à㥬 ¯ ¯ªã á ९®§¨â®à¨¥¬ ¨§ ¯®¤¯ ¯ª¨ ¢ ⥪ãéãî ¯ ¯ªã
  22. move /Y sas.maps\.hg .\.hg
  23. IF NOT ERRORLEVEL 0 goto errMoveHg
  24. echo “¤ «ï¥¬ ¢à¥¬¥­­® ᮧ¤ ­­ãî ¯®¤¯ ¯ªã
  25. rd /s /q sas.maps
  26. IF NOT ERRORLEVEL 0 goto errRemoveTemp
  27. echo Ž¡­®¢«ï¥¬ ä ©«ë ¤® ¯®á«¥¤­¥© ¢¥àᨨ
  28. hg update -c
  29. goto end
  30. :noupdates
  31. echo �¥â ­®¢ëå ¨§¬¥­¥­¨©
  32. goto end
  33. :err
  34. echo Žè¨¡ª  á¢ï§¨ á á¥à¢¥à®¬
  35. goto end
  36. :errMoveHg
  37. echo Žè¨¡ª  ¯¥à¥¬¥é¥­¨ï ¯ ¯ª¨ .hg
  38. goto end
  39. :errRemoveTemp
  40. echo Žè¨¡ª  㤠«¥­¨ï ¢à¥¬¥­­®© ¯ ¯ª¨ sas.maps
  41. goto end
  42. :NoHg
  43. echo �¥ ãáâ ­®¢«¥­ Mercurial
  44. goto end
  45. :end
  46. pause