r871394 | kfogel | 2008-05-20 21:11:26 +0000 (Tue, 20 May 2008)
Fix issue #3076 whereby 'svn info' would return success (zero) even if it
printed warnings about some of the targets. Now if any target
encounters an error, return non-zero after handling all targets.
* subversion/svn/info-cmd.c
(svn_cl__info): If any targets errored, return the last error at
the end, so svn will exit with a non-zero exit code. Add a test for
SVN_ERR_ENTRY_NOT_FOUND, which is the actual code returned for a
non-existent or existent-but-unversioned file (as indicated by
manual testing, and thank goodness for tools/dev/which-error.py).
Finally, rework the conditional structure a bit, making this
change appear larger than it really is.
Suggested by: Mark E. Hamilton <mhamilt@sandia.gov>
epg
See this message and the thread around it:
http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=77852
From: "Mark E. Hamilton" <mhamilt@sandia.gov>
To: users@subversion.tigris.org
Subject: Re: svn info not setting exit status.
Message-ID: <483324FA.3040404@sandia.gov>
Date: Tue, 20 May 2008 13:22:34 -0600