[Zodb-checkins] SVN: ZODB/trunk/ Merge rev 27481 from 3.3 branch.

Tim Peters tim.one at comcast.net
Thu Sep 9 14:22:48 EDT 2004


Log message for revision 27482:
  Merge rev 27481 from 3.3 branch.
  
  Forward port from Zope 2.7 branch.
  
  The ConflictError.get_{old,new}_serial() methods each did what the other
  was supposed to do.
  


Changed:
  U   ZODB/trunk/NEWS.txt
  U   ZODB/trunk/src/ZODB/POSException.py


-=-
Modified: ZODB/trunk/NEWS.txt
===================================================================
--- ZODB/trunk/NEWS.txt	2004-09-09 18:20:47 UTC (rev 27481)
+++ ZODB/trunk/NEWS.txt	2004-09-09 18:22:48 UTC (rev 27482)
@@ -83,6 +83,13 @@
     serial this txn started with 0x034414228c3728d5 2002-04-14 20:50:32.863000,
     serial currently committed 0x03441422948b4399 2002-04-14 20:50:34.815000)
 
+ConflictError
+-------------
+
+The undocumented ``get_old_serial()`` and ``get_new_serial()`` methods
+were swapped (the first returned the new serial, and the second returned
+the old serial).
+
 Tools
 -----
 

Modified: ZODB/trunk/src/ZODB/POSException.py
===================================================================
--- ZODB/trunk/src/ZODB/POSException.py	2004-09-09 18:20:47 UTC (rev 27481)
+++ ZODB/trunk/src/ZODB/POSException.py	2004-09-09 18:22:48 UTC (rev 27482)
@@ -112,10 +112,10 @@
         return self.class_name
 
     def get_old_serial(self):
-        return self.serials[0]
+        return self.serials[1]
 
     def get_new_serial(self):
-        return self.serials[1]
+        return self.serials[0]
 
     def get_serials(self):
         return self.serials



More information about the Zodb-checkins mailing list