subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1461391 - /subversion/trunk/tools/hook-scripts/control-chars.py
Date Wed, 27 Mar 2013 02:27:17 GMT
Author: danielsh
Date: Wed Mar 27 02:27:17 2013
New Revision: 1461391

URL: http://svn.apache.org/r1461391
Log:
* tools/hook-scripts/control-chars.py
  (main): Allow base_rev to be r0.

Modified:
    subversion/trunk/tools/hook-scripts/control-chars.py

Modified: subversion/trunk/tools/hook-scripts/control-chars.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/hook-scripts/control-chars.py?rev=1461391&r1=1461390&r2=1461391&view=diff
==============================================================================
--- subversion/trunk/tools/hook-scripts/control-chars.py (original)
+++ subversion/trunk/tools/hook-scripts/control-chars.py Wed Mar 27 02:27:17 2013
@@ -82,7 +82,7 @@ def main(ignored_pool, argv):
   txn = svn.fs.svn_fs_open_txn(fs, txn_name)
   txn_root = svn.fs.svn_fs_txn_root(txn)
   base_rev = svn.fs.svn_fs_txn_base_revision(txn)
-  if not base_rev or base_rev <= svn.core.SVN_INVALID_REVNUM: 
+  if base_rev is None or base_rev <= svn.core.SVN_INVALID_REVNUM: 
     sys.stderr.write("Transaction '%s' is not based on a revision" % txn_name)
     return 2
   base_root = svn.fs.svn_fs_revision_root(fs, base_rev)



Mime
View raw message