/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 bzrlib/tests/branch_implementations/test_uncommit.py

  • Committer: Andrew Bennetts
  • Date: 2008-05-07 22:47:56 UTC
  • mfrom: (3412 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3414.
  • Revision ID: andrew.bennetts@canonical.com-20080507224756-upxgmud0bdo4ysuf
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        tree.add('')
54
54
        revid = tree.commit('a revision')
55
55
        tree.unlock()
56
 
        Branch.hooks.install_hook('post_uncommit',
57
 
            self.capture_post_uncommit_hook)
 
56
        Branch.hooks.install_named_hook('post_uncommit',
 
57
            self.capture_post_uncommit_hook, None)
58
58
        uncommit(tree.branch)
59
59
        # with nothing left we should still get a notification, and
60
60
        # have the branch locked at notification time.
76
76
        tree.add('')
77
77
        revid = tree.commit('a revision')
78
78
        tree.unlock()
79
 
        Branch.hooks.install_hook('post_uncommit',
80
 
            self.capture_post_uncommit_hook)
 
79
        Branch.hooks.install_named_hook('post_uncommit',
 
80
            self.capture_post_uncommit_hook, None)
81
81
        uncommit(tree.branch)
82
82
        # with nothing left we should still get a notification, and
83
83
        # have the branch locked at notification time.
95
95
        revid2 = tree.commit('second revision')
96
96
        revid3 = tree.commit('third revision')
97
97
        tree.unlock()
98
 
        Branch.hooks.install_hook('post_uncommit',
99
 
            self.capture_post_uncommit_hook)
 
98
        Branch.hooks.install_named_hook('post_uncommit',
 
99
            self.capture_post_uncommit_hook, None)
100
100
        uncommit(tree.branch, revno=2)
101
101
        # having uncommitted from up the branch, we should get the
102
102
        # before and after revnos and revids correctly.