~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisionnamespaces.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-21 23:50:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1979.
  • Revision ID: john@arbash-meinel.com-20060821235008-6730d6958c745fe9
Going before:0 is an error, and if you are on another history, use the leftmost parent

Show diffs side-by-side

added added

removed removed

Lines of Context:
358
358
        self.assertInHistoryIs(0, None, 'before:1')
359
359
 
360
360
    def test_before_none(self):
361
 
        # before: will stop at None
362
 
        self.assertInHistoryIs(0, None, 'before:0')
 
361
        self.assertInvalid('before:0',
 
362
                           extra='; cannot go before the null: revision')
363
363
 
364
364
    def test_revid(self):
365
365
        self.assertInHistoryIs(1, 'r1', 'before:revid:r2')
368
368
        self.assertInHistoryIs(1, 'r1', 'before:last:1')
369
369
 
370
370
    def test_alt_revid(self):
371
 
        # XXX: before will return entries from other histories, but not
372
 
        # the entry previous to them. Is this intentional, it seems like a bug?
373
 
        self.assertInHistoryIs(None, 'alt_r2', 'before:revid:alt_r2')
 
371
        # This will grab the left-most ancestor for alternate histories
 
372
        self.assertInHistoryIs(1, 'r1', 'before:revid:alt_r2')
374
373
 
375
374
 
376
375
class TestRevisionSpec_tag(TestRevisionSpec):