/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to __init__.py

Add DulwichFeature.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    sys.path.append(os.path.normpath(
74
74
        os.path.join(os.path.dirname(__file__), '_lib')))
75
75
 
76
 
_versions_checked = False
77
 
def lazy_check_versions():
78
 
    global _versions_checked
79
 
    if _versions_checked:
80
 
        return
81
 
    _versions_checked = True
 
76
 
 
77
def import_dulwich():
82
78
    try:
83
79
        from dulwich import __version__ as dulwich_version
84
80
    except ImportError:
90
86
                "bzr-git: Dulwich is too old; at least %d.%d.%d is required" %
91
87
                    dulwich_minimum_version)
92
88
 
 
89
 
 
90
_versions_checked = False
 
91
def lazy_check_versions():
 
92
    global _versions_checked
 
93
    if _versions_checked:
 
94
        return
 
95
    import_dulwich()
 
96
    _versions_checked = True
 
97
 
93
98
bzrdir.format_registry.register_lazy('git',
94
99
    "bzrlib.plugins.git.dir", "LocalGitBzrDirFormat",
95
100
    help='GIT repository.', native=False, experimental=True,