~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: Aaron Bentley
  • Date: 2006-06-06 17:10:05 UTC
  • mfrom: (1744 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1748.
  • Revision ID: aaron.bentley@utoronto.ca-20060606171005-e2b50e39cd5056be
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
261
261
        return len(self.revs)
262
262
 
263
263
 
264
 
class RevisionSpec_revs:
265
 
    def __init__(self, revs, branch):
266
 
        self.revs = revs
267
 
        self.branch = branch
268
 
    def __getitem__(self, index):
269
 
        r = self.branch.repository.get_revision(self.revs[index])
270
 
        # TODO: Handle timezone.
271
 
        return datetime.datetime.fromtimestamp(r.timestamp)
272
 
    def __len__(self):
273
 
        return len(self.revs)
274
 
 
275
 
 
276
264
class RevisionSpec_date(RevisionSpec):
277
265
    prefix = 'date:'
278
266
    _date_re = re.compile(