Don't pass a revid to pack(). Pass the current time.
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.
Showing
Please register or sign in to comment