~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisionnamespaces.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-05-23 11:06:22 UTC
  • mfrom: (1704.2.28 bzr.mbp.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060523110622-5ad5c2bf9dee4fc5
(mbp) use bisect to find revisions by date

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
        self.assertEquals(RevisionSpec('date:today').in_history(b),
52
52
                          (2, 'a@r-0-2'))
 
53
        self.assertRaises(NoSuchRevision,
 
54
                          RevisionSpec('date:tomorrow').in_history, b)
53
55
        self.assertEquals(RevisionSpec('date:yesterday').in_history(b),
54
56
                          (1, 'a@r-0-1'))
55
57
        self.assertEquals(RevisionSpec('before:date:today').in_history(b),
56
58
                          (1, 'a@r-0-1'))
 
59
        self.assertRaises(NoSuchRevision,
 
60
                          RevisionSpec('date:tomorrow').in_history, b)
57
61
 
58
62
        self.assertEquals(RevisionSpec('last:1').in_history(b),
59
63
                          (3, 'a@r-0-3'))