~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_branch.py

  • Committer: Patch Queue Manager
  • Date: 2011-09-26 15:42:24 UTC
  • mfrom: (6165.2.3 avoid-revision-history)
  • Revision ID: pqm@pqm.ubuntu.com-20110926154224-by4s1qzbroh115wn
(jelmer) Remove several calls to Branch.revision_history(). (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
514
514
        br = tree.branch
515
515
        self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
516
516
            br.set_revision_history, ["rev1"])
517
 
        self.assertEquals(br.revision_history(), ["rev1"])
 
517
        self.assertEquals(br.last_revision(), "rev1")
518
518
        self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
519
519
            br.set_revision_history, [])
520
 
        self.assertEquals(br.revision_history(), [])
 
520
        self.assertEquals(br.last_revision(), 'null:')
521
521
 
522
522
    def test_heads_to_fetch(self):
523
523
        # heads_to_fetch is a method that returns a collection of revids that