/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Curtis Hovey
  • Date: 2012-03-11 18:24:06 UTC
  • mto: This revision was merged to the branch mainline in revision 785.
  • Revision ID: sinzui.is@verizon.net-20120311182406-f4jqpff65b30g3al
Create the mnemonic for the button label.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
import bzrlib
55
55
import bzrlib.api
56
56
from bzrlib import (
 
57
    branch,
57
58
    config,
58
59
    )
59
60
from bzrlib.commands import plugin_cmds
133
134
    from bzrlib.plugins.gtk import commitmsgs
134
135
    commitmsgs.save_commit_messages(*args)
135
136
 
136
 
try:
137
 
    from bzrlib.hooks import install_lazy_named_hook
138
 
except ImportError:
139
 
    from bzrlib.branch import Branch
140
 
    Branch.hooks.install_named_hook('post_uncommit',
141
 
                                    save_commit_messages,
142
 
                                    "Saving commit messages for gcommit")
143
 
else:
144
 
    install_lazy_named_hook("bzrlib.branch", "Branch.hooks",
145
 
        'post_uncommit', save_commit_messages, "Saving commit messages for gcommit")
146
 
 
 
137
branch.Branch.hooks.install_named_hook('post_uncommit',
 
138
                                       save_commit_messages,
 
139
                                       "Saving commit messages for gcommit")
147
140
 
148
141
option_registry = getattr(config, "option_registry", None)
149
142
if option_registry is not None: