How to determine if updating a working copy of SVN (from a script) is required?

I would like to determine from a batch file on Windows if the local working copy of SVN needs to be updated from the server. On a unix-like machine, I would run "svn status -u" and read "*". How can I achieve the same in a batch file?

Reference Information. I’m trying to determine if the dependency library is out of date because it takes a long time to reassemble it and we only update it once every 3 months. This is for an automated build process.

+3
source share
1 answer

If I follow you, perhaps something like:

svn st -u | find "*"
if not "%errorlevel%"=="0" goto end

svn update

:end

errorlevel 0, "*".

: "" % errorlevel%.

+4

Source: https://habr.com/ru/post/1751465/


All Articles