/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: Jelmer Vernooij
  • Date: 2019-06-02 02:35:46 UTC
  • mfrom: (7309 work)
  • mto: This revision was merged to the branch mainline in revision 7319.
  • Revision ID: jelmer@jelmer.uk-20190602023546-lqco868tnv26d8ow
merge trunk.

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.