[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Document return codes of 'svn ls'

From: anatoly techtonik <techtonik_at_gmail.com>
Date: Fri, 14 Jan 2011 20:54:34 +0200


How can I know if a file is not present in specific revision?

From one side I can run 'svn ls' and if it returns 0 when file exists,
but if 'svn ls' returns 1 it is impossible to guess between generic
error and situation when path for file doesn't exist in this specific
revision. Message parsing seems unreliable, because messages seem to
depend on locale. Everything could be fine if return codes allowed
recognizing these conditions. Perhaps there is some other way. Any

anatoly t.
Received on 2011-01-14 19:55:33 CET

This is an archived mail posted to the Subversion Dev mailing list.