~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to tools/dev/which-error.py

  • Committer: Package Import Robot
  • Author(s): James McCoy, Peter Samuelson, James McCoy
  • Date: 2014-01-12 19:48:33 UTC
  • mfrom: (0.2.10)
  • Revision ID: package-import@ubuntu.com-20140112194833-w3axfwksn296jn5x
Tags: 1.8.5-1
[ Peter Samuelson ]
* New upstream release.  (Closes: #725787) Rediff patches:
  - Remove apr-abi1 (applied upstream), rename apr-abi2 to apr-abi
  - Remove loosen-sqlite-version-check (shouldn't be needed)
  - Remove java-osgi-metadata (applied upstream)
  - svnmucc prompts for a changelog if none is provided. (Closes: #507430)
  - Remove fix-bdb-version-detection, upstream uses "apu-config --dbm-libs"
  - Remove ruby-test-wc (applied upstream)
  - Fix “svn diff -r N file” when file has svn:mime-type set.
    (Closes: #734163)
  - Support specifying an encoding for mod_dav_svn's environment in which
    hooks are run.  (Closes: #601544)
  - Fix ordering of “svnadmin dump” paths with certain APR versions.
    (Closes: #687291)
  - Provide a better error message when authentication fails with an
    svn+ssh:// URL.  (Closes: #273874)
  - Updated Polish translations.  (Closes: #690815)

[ James McCoy ]
* Remove all traces of libneon, replaced by libserf.
* patches/sqlite_3.8.x_workaround: Upstream fix for wc-queries-test test
  failurse.
* Run configure with --with-apache-libexecdir, which allows removing part of
  patches/rpath.
* Re-enable auth-test as upstream has fixed the problem of picking up
  libraries from the environment rather than the build tree.
  (Closes: #654172)
* Point LD_LIBRARY_PATH at the built auth libraries when running the svn
  command during the build.  (Closes: #678224)
* Add a NEWS entry describing how to configure mod_dav_svn to understand
  UTF-8.  (Closes: #566148)
* Remove ancient transitional package, libsvn-ruby.
* Enable compatibility with Sqlite3 versions back to Wheezy.
* Enable hardening flags.  (Closes: #734918)
* patches/build-fixes: Enable verbose build logs.
* Build against the default ruby version.  (Closes: #722393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#    under the License.
24
24
# ====================================================================
25
25
#
26
 
# $HeadURL: http://svn.apache.org/repos/asf/subversion/branches/1.7.x/tools/dev/which-error.py $
27
 
# $LastChangedDate: 2011-07-08 13:53:27 +0000 (Fri, 08 Jul 2011) $
28
 
# $LastChangedBy: philip $
29
 
# $LastChangedRevision: 1144315 $
 
26
# $HeadURL: http://svn.apache.org/repos/asf/subversion/branches/1.8.x/tools/dev/which-error.py $
 
27
# $LastChangedDate: 2012-03-30 20:29:32 +0000 (Fri, 30 Mar 2012) $
 
28
# $LastChangedBy: danielsh $
 
29
# $LastChangedRevision: 1307598 $
30
30
#
31
31
 
 
32
import errno
32
33
import sys
33
34
import os.path
34
35
import re
68
69
 
69
70
def get_errors():
70
71
  errs = {}
 
72
  ## errno values.
 
73
  errs.update(errno.errorcode)
 
74
  ## APR-defined errors, from apr_errno.h.
 
75
  for line in open(os.path.join(os.path.dirname(sys.argv[0]), 'aprerr.txt')):
 
76
    key, _, val = line.split()
 
77
    errs[int(val)] = key
 
78
  ## Subversion errors, from svn_error_codes.h.
71
79
  for key in vars(core):
72
80
    if key.find('SVN_ERR_') == 0:
73
81
      try:
81
89
  try:
82
90
    print('%08d  %s' % (code, __svn_error_codes[code]))
83
91
  except KeyError:
84
 
    print('%08d  *** UNKNOWN ERROR CODE ***' % (code))
 
92
    if code == -41:
 
93
      print("Sit by a lake.")
 
94
    else:
 
95
      print('%08d  *** UNKNOWN ERROR CODE ***' % (code))
85
96
 
86
97
if __name__ == "__main__":
87
98
  global __svn_error_codes