~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Don't make heads_to_fetch() take a stop_revision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
479
479
        must_fetch, should_fetch = tree.branch.heads_to_fetch()
480
480
        self.assertTrue('rev2' in must_fetch)
481
481
 
482
 
    def test_heads_to_fetch_stop_revision(self):
483
 
        tree = self.make_branch_and_tree('a')
484
 
        tree.commit('first commit', rev_id='rev1')
485
 
        tree.commit('second commit', rev_id='rev2')
486
 
        must_fetch, should_fetch = tree.branch.heads_to_fetch('rev1')
487
 
        self.assertTrue('rev1' in must_fetch)
488
 
        self.assertFalse('rev2' in must_fetch)
489
 
 
490
482
    def test_heads_to_fetch_not_null_revision(self):
491
483
        # NULL_REVISION does not appear in the result of heads_to_fetch, even
492
484
        # for an empty branch.