Commit 807d80a6 authored by Jim Fulton's avatar Jim Fulton

Do gc if there is no base storage.

parent 346a82e2
......@@ -194,7 +194,17 @@ class DemoStorage(object):
return oid
def pack(self, t, referencesf, gc=False):
def pack(self, t, referencesf, gc=None):
if gc is None:
if self._temporary_base:
return self.changes.pack(t, referencesf)
elif self._temporary_base:
return self.changes.pack(t, referencesf, gc=gc)
elif gc:
raise TypeError(
"Garbage collection isn't supported"
" when there is a base storage.")
try:
self.changes.pack(t, referencesf, gc=False)
except TypeError, v:
......
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