Changeset 1236 in tailor for vcpx/statefile.py
- Timestamp:
- 08/09/06 12:45:42 (7 years ago)
- Hash name:
- 20060809104542-97f81-50490d8903d56fdcd99b15b508cf6e408e581846
- File:
-
- 1 edited
-
vcpx/statefile.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/statefile.py
r984 r1236 108 108 raise StopIteration 109 109 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 break127 128 index.reverse()129 130 for pos in index:131 self.archive.seek(pos)132 yield load(self.archive)133 110 134 111 def pending(self):
Note: See TracChangeset
for help on using the changeset viewer.
