• Jeremy Hylton's avatar
    Don't pass a revid to pack(). Pass the current time. · 6410bd0f
    Jeremy Hylton authored
    Two problems: A revid doesn't have the right type.  But even if we
    decoded the revid using TimeStamp(revid).timeTime(), it would be the
    wrong time.  We want to pack to the current time to delete older
    revisions.
    
    I believe the test case tried to keep one revision available so that
    it could be packed.  The new test doesn't do that, so it will fail
    even after we fix FileStorage.  I think the right answer is to call
    time.time() after the second commit *and* make sure that there is at
    least a one second delay between the two stores.
    6410bd0f
TransactionalUndoStorage.py 17.1 KB