Changeset 1236 in tailor for vcpx/statefile.py


Ignore:
Timestamp:
08/09/06 12:45:42 (7 years ago)
Author:
lele@…
Hash name:
20060809104542-97f81-50490d8903d56fdcd99b15b508cf6e408e581846
Message:

Drop StateFile.reversed() method that was used only by CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/statefile.py

    r984 r1236  
    108108            raise StopIteration 
    109109        return self.current 
    110  
    111     def reversed(self): 
    112         """ 
    113         Iterate over the changesets, going backward. 
    114         """ 
    115  
    116         if self.archive is None: 
    117             self._load() 
    118  
    119         index = [] 
    120         while True: 
    121             pos = self.archive.tell() 
    122             try: 
    123                 load(self.archive) 
    124                 index.append(pos) 
    125             except EOFError: 
    126                 break 
    127  
    128         index.reverse() 
    129  
    130         for pos in index: 
    131             self.archive.seek(pos) 
    132             yield load(self.archive) 
    133110 
    134111    def pending(self): 
Note: See TracChangeset for help on using the changeset viewer.