/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: Jelmer Vernooij
  • Date: 2011-11-30 21:45:54 UTC
  • Revision ID: jelmer@samba.org-20111130214554-5kfx0b5y7t5zh033
Extend branch preferences, show location widget.

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,
58
57
    )
59
58
from bzrlib.commands import plugin_cmds
60
59
 
130
129
                              "bzrlib.plugins.gtk.commands")
131
130
 
132
131
def save_commit_messages(*args):
133
 
    from bzrlib.plugins.gtk import commit
134
 
    commit.save_commit_messages(*args)
 
132
    from bzrlib.plugins.gtk import commitmsgs
 
133
    commitmsgs.save_commit_messages(*args)
135
134
 
136
135
branch.Branch.hooks.install_named_hook('post_uncommit',
137
136
                                       save_commit_messages,
138
137
                                       "Saving commit messages for gcommit")
139
138
 
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.")
 
139
config.option_registry.register(
 
140
    config.Option('nautilus_integration', default=True,
 
141
           from_unicode=config.bool_from_store,
 
142
           help='''\
 
143
Whether to enable nautilus integration.
 
144
 
 
145
Defines whether Nautilus integration should be enabled.
 
146
'''))
151
147
 
152
148
 
153
149
def load_tests(basic_tests, module, loader):