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

Re: script to convert APR error numbers to SVN_ERR_* codes

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2007-05-21 15:08:14 CEST

David Glasser wrote:
> It's a pain to have to look up the symbolic SVN_ERR_* names for APR
> error codes when debugging. In r25081, I committed a script which
> converts numbers to error names to the csvn python bindings branch.
> (One could write a similar script for the SWIG bindings, I guess.)

You mean like tools/dev/which-error.py?

$ ~/projects/subversion/tools/dev/which-error.py
Usage: 1. which-error.py ERRNUM [...]
       2. which-error.py parse
       3. which-error.py list

Print numeric and semantic error code information for Subversion error
codes. This can be done in variety of ways:

   1. For each ERRNUM, list the error code information.

   2. Parse standard input as if it was error stream from a debug-mode
      Subversion command-line client, echoing that input to stdout,
      followed by the error code information for codes found in use in
      that error stream.

   3. Simply list the error code information for all known such
      mappings.

-- 
C. Michael Pilato <cmpilato@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on Mon May 21 15:08:22 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.