~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2011-09-24 13:00:12 UTC
  • mto: This revision was merged to the branch mainline in revision 6189.
  • Revision ID: jelmer@samba.org-20110924130012-lt1fmxxb5rb0pplh
Skip tests if the repository doesn't support ghosts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from bzrlib import errors, reconcile
20
20
from bzrlib.symbol_versioning import deprecated_in
21
21
from bzrlib.tests.per_branch import TestCaseWithBranch
 
22
from bzrlib.tests import TestNotApplicable
22
23
 
23
24
 
24
25
class TestBranchReconcile(TestCaseWithBranch):
75
76
 
76
77
    def test_reconcile_handles_ghosts_in_revhistory(self):
77
78
        tree = self.make_branch_and_tree('test')
 
79
        if not tree.branch.repository._format.supports_ghosts:
 
80
            raise TestNotApplicable("repository format does not support ghosts")
78
81
        tree.set_parent_ids(["spooky"], allow_leftmost_as_ghost=True)
79
82
        r1 = tree.commit('one')
80
83
        r2 = tree.commit('two')