~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

(jelmer) Several more fixes to allow running bzr.dev against bzr-svn (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
    def test_record_initial_ghost(self):
218
218
        """Branches should support having ghosts."""
219
219
        wt = self.make_branch_and_tree('.')
 
220
        if not wt.branch.repository._format.supports_ghosts:
 
221
            raise tests.TestNotApplicable("repository format does not "
 
222
                "support ghosts")
220
223
        wt.set_parent_ids(['non:existent@rev--ision--0--2'],
221
224
            allow_leftmost_as_ghost=True)
222
225
        self.assertEqual(['non:existent@rev--ision--0--2'],
230
233
    def test_record_two_ghosts(self):
231
234
        """Recording with all ghosts works."""
232
235
        wt = self.make_branch_and_tree('.')
 
236
        if not wt.branch.repository._format.supports_ghosts:
 
237
            raise tests.TestNotApplicable("repository format does not "
 
238
                "support ghosts")
233
239
        wt.set_parent_ids([
234
240
                'foo@azkhazan-123123-abcabc',
235
241
                'wibble@fofof--20050401--1928390812',