On Wed, 22 Jul 2020 at 17:46, Nathan Hartman <hartman.nathan_at_gmail.com> wrote:
> On Wed, Jul 22, 2020 at 12:10 PM sebb <sebbaz_at_gmail.com> wrote:
> > > Use the machine-parseable E000042 error codes. That's exactly what
> > > they're for. (which-error.py and svn_error_symbolic_name() can be used
> > > to convert numbers to symbolic names.)
> > Where are these error codes defined?
> > I could not find any reference to them in the documentation.
> If you mean where in the source code:
> which is included by subversion/include/svn_error.h, which is further
> included by subversion/svnmucc/svnmucc.c.
> Hope that helps,
Thanks, but not really.
If the error codes are intended to be machine-parseable then the
programmer needs to have documentation of the values and their
There needs to be at least a mention in the documentation that such
codes exist and where to find the values. If there is such a mention,
I could not find it.
Also, I had a look at the file and it does not show the numeric
values, and whilst there is a text string associated with each one it
does not detail when it might be used.
Nor indeed do the strings agree with the actual messages generated by
SVN as far as I can tell.
e.g. svn list reports the following:
svn: warning: W160013: Path '/x' not found
svn: E200009: Could not list all targets because some targets don't exist
But I could not find similar strings in the header file; e.g. the only
string containing targets is:
"Duplicate targets in svn:externals property"
So I don't think the header file is suitable for writing software to
analyse the error codes.
Received on 2020-07-22 23:35:08 CEST