~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-04 10:55:31 UTC
  • mfrom: (1728.2.4 bzr.mbp.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060604105531-0071ce43b2156b7a
(mbp) several small fixes

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(