/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: 2011-08-12 20:25:28 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110812202528-4xf4a2t23urx50d2
Updated gst to gtk3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
from bzrlib import (
55
55
    branch,
56
56
    config,
 
57
    errors,
57
58
    )
58
59
from bzrlib.commands import plugin_cmds
59
60
 
129
130
                              "bzrlib.plugins.gtk.commands")
130
131
 
131
132
def save_commit_messages(*args):
132
 
    from bzrlib.plugins.gtk import commitmsgs
133
 
    commitmsgs.save_commit_messages(*args)
 
133
    from bzrlib.plugins.gtk import commit
 
134
    commit.save_commit_messages(*args)
134
135
 
135
136
branch.Branch.hooks.install_named_hook('post_uncommit',
136
137
                                       save_commit_messages,
137
138
                                       "Saving commit messages for gcommit")
138
139
 
139
 
option_registry = getattr(config, "option_registry", None)
140
 
if option_registry is not None:
141
 
    config.option_registry.register_lazy('nautilus_integration',
142
 
            'bzrlib.plugins.gtk.config', 'opt_nautilus_integration')
 
140
credential_store_registry = getattr(config, "credential_store_registry", None)
 
141
if credential_store_registry is not None:
 
142
    try:
 
143
        credential_store_registry.register_lazy(
 
144
            "gnome-keyring", "bzrlib.plugins.gtk.keyring", "GnomeKeyringCredentialStore",
 
145
            help="The GNOME Keyring.", fallback=True)
 
146
    except TypeError:
 
147
    # Fallback credentials stores were introduced in Bazaar 1.15
 
148
        credential_store_registry.register_lazy(
 
149
            "gnome-keyring", "bzrlib.plugins.gtk.keyring", "GnomeKeyringCredentialStore",
 
150
            help="The GNOME Keyring.")
 
151
 
143
152
 
144
153
def load_tests(basic_tests, module, loader):
145
154
    testmod_names = [