~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_revision_history.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:
22
22
    revision as _mod_revision,
23
23
    )
24
24
from bzrlib.symbol_versioning import deprecated_in
25
 
from bzrlib.tests import per_branch
 
25
from bzrlib.tests import (
 
26
    per_branch,
 
27
    TestNotApplicable,
 
28
    )
26
29
 
27
30
 
28
31
class TestLastRevision(per_branch.TestCaseWithBranch):
205
208
 
206
209
    def test_parent_ghost(self):
207
210
        tree = self.make_branch_and_tree('tree')
 
211
        if not tree.branch.repository._format.supports_ghosts:
 
212
            raise TestNotApplicable("repository format does not support ghosts")
208
213
        tree.add_parent_tree_id('ghost-revision',
209
214
                                allow_leftmost_as_ghost=True)
210
215
        tree.commit('first non-ghost commit', rev_id='non-ghost-revision')