1. 07 Jun, 2004 1 commit
  2. 03 Jun, 2004 15 commits
  3. 02 Jun, 2004 13 commits
  4. 01 Jun, 2004 4 commits
  5. 31 May, 2004 2 commits
    • Tim Peters's avatar
      testItemsNegativeIndex (3 instances): repaired off-by-one glitch in loop... · 23e7bd75
      Tim Peters authored
      testItemsNegativeIndex (3 instances):  repaired off-by-one glitch in loop (range(i, j, k) is always exclusive of j).
      23e7bd75
    • Casey Duncan's avatar
      Fix bug indexing BTreeItems with negative values. Previous code assumed that... · 47fb1d59
      Casey Duncan authored
      Fix bug indexing BTreeItems with negative values. Previous code assumed that idexes passed to BTreeItem_item would be negative, in practice this was not the case, and an index of -1 actually passed len(items)-1 as the index argument. Consequently, it was possible to access each item using two negative indexes (i.e., -1 and -len(items)-1). This made each item appear twice in a reverse iteration.
      
      Code in BTreeItems_seek attempted to match the sign of the pseudoindex kept in the BTreeItems obj and the incoming index. Since this incoming index was never legitimately negative as it assumed, actually negatives passed in due to "overshooting" the first item would repeat the items again from the end. Removal of this code corrects the problem.
      
      Unittests which provoke the error in the original code have also been added.
      
      47fb1d59
  6. 29 May, 2004 1 commit
  7. 26 May, 2004 1 commit
  8. 24 May, 2004 2 commits
  9. 22 May, 2004 1 commit
    • Tim Peters's avatar
      find_files(): When trying to do recovery to a time earlier than that · bb2793b8
      Tim Peters authored
      of the most recent full backup, repozo.py failed to find the appropriate
      files, erroneously claiming
      
          No files in repository before <specified time>
      
      Repaired that.  Also made it much more robust against "junk files" the
      user may create, or leave behind, in the backup directory.  Added test.
      bb2793b8