/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-20 12:31:44 UTC
  • Revision ID: sinzui.is@verizon.net-20120320123144-1fzwkjsnrk3cpaut
Update tests to reflect the changes to setup the the dialog for nautilus.

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,
58
57
    config,
59
58
    )
60
59
from bzrlib.commands import plugin_cmds
134
133
    from bzrlib.plugins.gtk import commitmsgs
135
134
    commitmsgs.save_commit_messages(*args)
136
135
 
137
 
branch.Branch.hooks.install_named_hook('post_uncommit',
138
 
                                       save_commit_messages,
139
 
                                       "Saving commit messages for gcommit")
 
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
 
140
147
 
141
148
option_registry = getattr(config, "option_registry", None)
142
149
if option_registry is not None: