/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2019-05-29 03:22:34 UTC
  • mfrom: (7303 work)
  • mto: This revision was merged to the branch mainline in revision 7306.
  • Revision ID: jelmer@jelmer.uk-20190529032234-mt3fuws8gq03tapi
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        # Now, try to set an invalid history
49
49
        try:
50
50
            self.applyDeprecated(deprecated_in((2, 4, 0)),
51
 
                tree.branch.set_revision_history, [r1, r2b, r5])
 
51
                                 tree.branch.set_revision_history, [r1, r2b, r5])
52
52
            if tree.branch.last_revision_info() != (3, r5):
53
53
                # RemoteBranch silently corrects an impossible revision
54
54
                # history given to set_revision_history.  It can be tricked
68
68
    def test_reconcile_returns_reconciler(self):
69
69
        a_branch = self.make_branch('a_branch')
70
70
        result = a_branch.reconcile()
71
 
        self.assertIsInstance(result, reconcile.BranchReconciler)
 
71
        self.assertIsInstance(result, reconcile.ReconcileResult)
72
72
        # No history to fix
73
 
        self.assertIs(False, result.fixed_history)
 
73
        self.assertIs(False, getattr(result, 'fixed_history', False))
74
74
 
75
75
    def test_reconcile_supports_thorough(self):
76
76
        a_branch = self.make_branch('a_branch')
80
80
    def test_reconcile_handles_ghosts_in_revhistory(self):
81
81
        tree = self.make_branch_and_tree('test')
82
82
        if not tree.branch.repository._format.supports_ghosts:
83
 
            raise TestNotApplicable("repository format does not support ghosts")
 
83
            raise TestNotApplicable(
 
84
                "repository format does not support ghosts")
84
85
        tree.set_parent_ids([b"spooky"], allow_leftmost_as_ghost=True)
85
86
        r1 = tree.commit('one')
86
87
        r2 = tree.commit('two')