Commit 9226c929 authored by Jeremy Hylton's avatar Jeremy Hylton

Fix awful mistake in commitVersion().

Don't ever stop after the first object.  It leaves all the other
objects in the version unmodified.
parent f85a965a
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
# may have a back pointer to a version record or to a non-version # may have a back pointer to a version record or to a non-version
# record. # record.
# #
__version__='$Revision: 1.128 $'[11:-2] __version__='$Revision: 1.129 $'[11:-2]
import base64 import base64
from cPickle import Pickler, Unpickler, loads from cPickle import Pickler, Unpickler, loads
...@@ -567,9 +567,6 @@ class FileStorage(BaseStorage.BaseStorage, ...@@ -567,9 +567,6 @@ class FileStorage(BaseStorage.BaseStorage,
here += heredelta here += heredelta
current_oids[oid] = 1 current_oids[oid] = 1
# Once we've found the data we are looking for,
# we can stop chasing backpointers.
break
else: else:
# Hm. This is a non-current record. Is there a # Hm. This is a non-current record. Is there a
...@@ -1495,7 +1492,7 @@ class FileStorage(BaseStorage.BaseStorage, ...@@ -1495,7 +1492,7 @@ class FileStorage(BaseStorage.BaseStorage,
referencesf(p, rootl) referencesf(p, rootl)
pindex[oid]=index[oid] pindex[oid]=index[oid]
except: except KeyError:
pindex[oid]=0 pindex[oid]=0
error('Bad reference to %s', `(oid,v)`) error('Bad reference to %s', `(oid,v)`)
# XXX This try/except frequently masks bugs in the # XXX This try/except frequently masks bugs in the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment