/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_uncommit.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        super(TestUncommitHook, self).setUp()
35
35
 
36
36
    def capture_post_uncommit_hook(self, local, master, old_revno,
37
 
        old_revid, new_revno, new_revid):
 
37
                                   old_revid, new_revno, new_revid):
38
38
        """Capture post uncommit hook calls to self.hook_calls.
39
39
 
40
40
        The call is logged, as is some state of the two branches.
56
56
        revid = tree.commit('a revision')
57
57
        tree.unlock()
58
58
        branch.Branch.hooks.install_named_hook('post_uncommit',
59
 
            self.capture_post_uncommit_hook, None)
 
59
                                               self.capture_post_uncommit_hook, None)
60
60
        uncommit.uncommit(tree.branch)
61
61
        # with nothing left we should still get a notification, and
62
62
        # have the branch locked at notification time.