~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/merge.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-30 11:45:54 UTC
  • mto: (5622.4.1 uninstall-hook)
  • mto: This revision was merged to the branch mainline in revision 5747.
  • Revision ID: jelmer@samba.org-20110330114554-zx7av89umf2dd9an
Don't require arguments to hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
 
62
62
class MergeHooks(hooks.Hooks):
63
63
 
64
 
    def __init__(self, module_name, member_name):
65
 
        hooks.Hooks.__init__(self, module_name, member_name)
 
64
    def __init__(self):
 
65
        hooks.Hooks.__init__(self, "bzrlib.merge", "Merger.hooks")
66
66
        self.add_hook('merge_file_content',
67
67
            "Called with a bzrlib.merge.Merger object to create a per file "
68
68
            "merge object when starting a merge. "
263
263
 
264
264
class Merger(object):
265
265
 
266
 
    hooks = MergeHooks("bzrlib.merge", "Merger.hooks")
 
266
    hooks = MergeHooks()
267
267
 
268
268
    def __init__(self, this_branch, other_tree=None, base_tree=None,
269
269
                 this_tree=None, pb=None, change_reporter=None,