~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/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:
128
128
                          tree_a.branch.pull, tree_b.branch,
129
129
                          overwrite=False, stop_revision='rev2b')
130
130
        # It should not have updated the branch tip, but it should have fetched
131
 
        # the revision
 
131
        # the revision if the repository supports "invisible" revisions
132
132
        self.assertEqual('rev2a', tree_a.branch.last_revision())
133
 
        self.assertTrue(tree_a.branch.repository.has_revision('rev2b'))
 
133
        if tree_a.branch.repository._format.supports_unreferenced_revisions:
 
134
            self.assertTrue(tree_a.branch.repository.has_revision('rev2b'))
134
135
        tree_a.branch.pull(tree_b.branch, overwrite=True,
135
136
                           stop_revision='rev2b')
136
137
        self.assertEqual('rev2b', tree_a.branch.last_revision())