subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1478597 - in /subversion/trunk/tools/dev: aprerr.txt which-error.py
Date Thu, 02 May 2013 23:00:28 GMT
Author: danielsh
Date: Thu May  2 23:00:28 2013
New Revision: 1478597

URL: http://svn.apache.org/r1478597
Log:
* tools/dev/aprerr.txt: Add a comment describing purpose of this file.

* tools/dev/which-error.py
  (get_errors): Ignore that comment when parsing.

Modified:
    subversion/trunk/tools/dev/aprerr.txt
    subversion/trunk/tools/dev/which-error.py

Modified: subversion/trunk/tools/dev/aprerr.txt
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/aprerr.txt?rev=1478597&r1=1478596&r2=1478597&view=diff
==============================================================================
--- subversion/trunk/tools/dev/aprerr.txt (original)
+++ subversion/trunk/tools/dev/aprerr.txt Thu May  2 23:00:28 2013
@@ -1,3 +1,4 @@
+# This file is used by which-error.py and gen_base.py:write_errno_table()
 APR_SUCCESS = 0
 SOCBASEERR = 10000
 SOCEPERM = 10001

Modified: subversion/trunk/tools/dev/which-error.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/which-error.py?rev=1478597&r1=1478596&r2=1478597&view=diff
==============================================================================
--- subversion/trunk/tools/dev/which-error.py (original)
+++ subversion/trunk/tools/dev/which-error.py Thu May  2 23:00:28 2013
@@ -73,6 +73,8 @@ def get_errors():
   errs.update(errno.errorcode)
   ## APR-defined errors, from apr_errno.h.
   for line in open(os.path.join(os.path.dirname(sys.argv[0]), 'aprerr.txt')):
+    if line.startswith('#'):
+       continue
     key, _, val = line.split()
     errs[int(val)] = key
   ## Subversion errors, from svn_error_codes.h.



Mime
View raw message