~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2011-04-19 14:17:24 UTC
  • mto: This revision was merged to the branch mainline in revision 5808.
  • Revision ID: jelmer@samba.org-20110419141724-4o6pk5wjr23o6z58
Branch.set_revision_history.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
 
78
78
        br = self.get_branch()
79
79
        br.fetch(wt.branch)
80
 
        br.set_revision_history(['rev1', 'rev2', 'rev3'])
 
80
        br.generate_revision_history('rev3')
81
81
        rh = br.revision_history()
82
82
        self.assertEqual(['rev1', 'rev2', 'rev3'], rh)
83
83
        for revision_id in rh:
462
462
        tree = self.make_branch_and_tree('a')
463
463
        tree.commit('a commit', rev_id='rev1')
464
464
        br = tree.branch
465
 
        br.set_revision_history(["rev1"])
 
465
        self.applyDeprecated(deprecated_in((2, 4, 0)),
 
466
            br.set_revision_history, ["rev1"])
466
467
        self.assertEquals(br.revision_history(), ["rev1"])
467
 
        br.set_revision_history([])
 
468
        self.applyDeprecated(deprecated_in((2, 4, 0)),
 
469
            br.set_revision_history, [])
468
470
        self.assertEquals(br.revision_history(), [])
469
471
 
470
472
    def test_heads_to_fetch(self):