~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_interbranch/test_pull.py

(jelmer) Add flag to indicate whether a repository supports unreferenced
 revisions. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
                          tree_a.branch.pull, tree_b.branch,
111
111
                          overwrite=False, stop_revision='rev2b')
112
112
        # It should not have updated the branch tip, but it should have fetched
113
 
        # the revision
 
113
        # the revision if the repository supports "invisible" revisions.
114
114
        self.assertEqual('rev2a', tree_a.branch.last_revision())
115
 
        self.assertTrue(tree_a.branch.repository.has_revision('rev2b'))
 
115
        if tree_a.branch.repository._format.supports_unreferenced_revisions:
 
116
            self.assertTrue(tree_a.branch.repository.has_revision('rev2b'))
116
117
        tree_a.branch.pull(tree_b.branch, overwrite=True,
117
118
                           stop_revision='rev2b')
118
119
        self.assertEqual('rev2b', tree_a.branch.last_revision())