~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

(jelmer) Remove Branch.revision_history() and Branch.set_revision_history().
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
475
475
        checkout = source_branch.create_checkout('c')
476
476
        self.assertEqual(rev_id, checkout.last_revision())
477
477
 
478
 
    def test_set_revision_history(self):
479
 
        tree = self.make_branch_and_tree('a')
480
 
        tree.commit('a commit', rev_id='rev1')
481
 
        br = tree.branch
482
 
        self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
483
 
            br.set_revision_history, ["rev1"])
484
 
        self.assertEquals(br.last_revision(), "rev1")
485
 
        self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
486
 
            br.set_revision_history, [])
487
 
        self.assertEquals(br.last_revision(), 'null:')
488
 
 
489
478
    def test_heads_to_fetch(self):
490
479
        # heads_to_fetch is a method that returns a collection of revids that
491
480
        # need to be fetched to copy this branch into another repo.  At a