svn status -u
Adds operational revision and outdated server information.
If you do not have files without versions in the directory, then it is updated only if the status command returns nothing. Otherwise, * means it is not being updated ,? means non-version, M - modified, etc.
In other words, this is relevant if and only if the following returns 0:
svn status -u | grep -E -c "^\s+[^\?]"
source share