/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: 2018-11-11 04:08:32 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181111040832-nsljjynzzwmznf3h
Run autopep8.

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
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')