We keep a image of current release code in some local directory and for building the code we use the code in this directory. In the build script, I need a way to figure out if the code in image directory in sync with the current release branch in repository. If it is so, I will do a svn update from within script. Can the revision numbers be somehow used to detect the out of sync condition? If so how?
Vadiraj
adds working revision and server out-of-date information.
If you don’t have non-versioned files in the directory then it’s up to date only if the status command returns nothing.
Otherwise * means it’s not up to date, ? means non-versioned, M – modified, etc.
In other words it’s up to date if and only if the following returns 0: