subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1156656 - /subversion/branches/fs-py/subversion/python/svn/fs.py
Date Thu, 11 Aug 2011 15:50:08 GMT
Author: hwright
Date: Thu Aug 11 15:50:07 2011
New Revision: 1156656

URL: http://svn.apache.org/viewvc?rev=1156656&view=rev
Log:
On the fs-py branch:
Fix svnadmin test 13 by properly reading the "current" file.

* subversion/python/svn/fs.py
  (FS.__read_current): Split the read line into chunks.
  (FS._get_youngest): Look at the first field of current file.

Modified:
    subversion/branches/fs-py/subversion/python/svn/fs.py

Modified: subversion/branches/fs-py/subversion/python/svn/fs.py
URL: http://svn.apache.org/viewvc/subversion/branches/fs-py/subversion/python/svn/fs.py?rev=1156656&r1=1156655&r2=1156656&view=diff
==============================================================================
--- subversion/branches/fs-py/subversion/python/svn/fs.py (original)
+++ subversion/branches/fs-py/subversion/python/svn/fs.py Thu Aug 11 15:50:07 2011
@@ -81,10 +81,10 @@ class FS(object):
 
     def __read_current(self):
         with open(self.__path_current, 'rb') as f:
-            return int(f.readline())
+            return f.readline().split()
 
     def _get_youngest(self):
-        return self.__read_current()
+        return int(self.__read_current()[0])
 
     def set_uuid(self, uuid_in = None):
         '''Set the UUID for the filesystem.  If UUID_IN is not given, generate



Mime
View raw message