/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/plugins/po_merge/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
"""
55
55
 
56
 
from bzrlib import (
 
56
from ... import (
57
57
    config,
58
 
    # Since we are a built-in plugin we share the bzrlib version
 
58
    # Since we are a built-in plugin we share the breezy version
59
59
    version_info,
60
60
    )
61
 
from bzrlib.hooks import install_lazy_named_hook
 
61
from ...hooks import install_lazy_named_hook
62
62
 
63
63
 
64
64
def register_lazy_option(key, member):
65
65
    config.option_registry.register_lazy(
66
 
        key, 'bzrlib.plugins.po_merge.po_merge', member)
 
66
        key, 'breezy.plugins.po_merge.po_merge', member)
67
67
 
68
68
 
69
69
register_lazy_option('po_merge.command', 'command_option')
74
74
 
75
75
def po_merge_hook(merger):
76
76
    """Merger.merge_file_content hook for po files."""
77
 
    from bzrlib.plugins.po_merge.po_merge import PoMerger
 
77
    from .po_merge import PoMerger
78
78
    return PoMerger(merger)
79
79
 
80
80
 
81
 
install_lazy_named_hook("bzrlib.merge", "Merger.hooks", "merge_file_content",
 
81
install_lazy_named_hook("breezy.merge", "Merger.hooks", "merge_file_content",
82
82
    po_merge_hook, ".po file merge")
83
83
 
84
84
 
85
 
def load_tests(basic_tests, module, loader):
 
85
def load_tests(loader, basic_tests, pattern):
86
86
    testmod_names = [
87
87
        'tests',
88
88
        ]