/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

  • Committer: Jelmer Vernooij
  • Date: 2009-03-28 22:27:07 UTC
  • mto: (0.200.305 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090328222707-n0y980ntev40xqd2
Fix blob lookup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006-2009 Canonical Ltd
2
2
 
3
3
# Authors: Robert Collins <robert.collins@canonical.com>
4
4
#          Jelmer Vernooij <jelmer@samba.org>
26
26
 
27
27
import bzrlib
28
28
import bzrlib.api
29
 
from bzrlib import bzrdir, errors as bzr_errors
30
 
from bzrlib.foreign import foreign_vcs_registry
31
 
from bzrlib.lockable_files import TransportLock
32
 
from bzrlib.transport import register_lazy_transport
33
 
from bzrlib.commands import plugin_cmds
34
 
from bzrlib.trace import warning
35
 
 
36
 
MINIMUM_DULWICH_VERSION = (0, 1, 0)
37
 
COMPATIBLE_BZR_VERSIONS = [(1, 11, 0), (1, 12, 0)]
 
29
from bzrlib import (
 
30
    bzrdir,
 
31
    errors as bzr_errors,
 
32
    )
 
33
from bzrlib.foreign import (
 
34
    foreign_vcs_registry,
 
35
    )
 
36
from bzrlib.lockable_files import (
 
37
    TransportLock,
 
38
    )
 
39
from bzrlib.transport import (
 
40
    register_lazy_transport,
 
41
    )
 
42
from bzrlib.commands import (
 
43
    plugin_cmds,
 
44
    )
 
45
from bzrlib.trace import (
 
46
    warning,
 
47
    )
 
48
 
 
49
# versions ending in 'exp' mean experimental mappings
 
50
# versions ending in 'dev' mean development version
 
51
# versions ending in 'final' mean release (well tested, etc)
 
52
version_info = (0, 2, 0, 'dev', 0)
 
53
 
 
54
if version_info[3] == 'final':
 
55
    version_string = '%d.%d.%d' % version_info[:3]
 
56
else:
 
57
    version_string = '%d.%d.%d%s%d' % version_info
 
58
__version__ = version_string
 
59
 
 
60
MINIMUM_DULWICH_VERSION = (0, 1, 1)
 
61
COMPATIBLE_BZR_VERSIONS = [(1, 13, 0)]
38
62
 
39
63
if getattr(sys, "frozen", None):
40
64
    # allow import additional libs from ./_lib for bzr.exe only
61
85
    help='GIT repository.', native=False, experimental=True,
62
86
    )
63
87
 
64
 
try:
65
 
    from bzrlib.revisionspec import revspec_registry
66
 
    revspec_registry.register_lazy("git:", "bzrlib.plugins.git.revspec", 
67
 
        "RevisionSpec_git")
68
 
except ImportError:
69
 
    lazy_check_versions()
70
 
    from bzrlib.revisionspec import SPEC_TYPES
71
 
    from bzrlib.plugins.git.revspec import RevisionSpec_git
72
 
    SPEC_TYPES.append(RevisionSpec_git)
 
88
from bzrlib.revisionspec import revspec_registry
 
89
revspec_registry.register_lazy("git:", "bzrlib.plugins.git.revspec", 
 
90
    "RevisionSpec_git")
73
91
 
74
92
class GitBzrDirFormat(bzrdir.BzrDirFormat):
75
93
    _lock_class = TransportLock
213
231
plugin_cmds.register_lazy("cmd_git_serve", [], "bzrlib.plugins.git.commands")
214
232
plugin_cmds.register_lazy("cmd_git_import", [], "bzrlib.plugins.git.commands")
215
233
 
 
234
def get_rich_root_format():
 
235
    try:
 
236
        return bzrdir.format_registry.make_bzrdir("default-rich-root")
 
237
    except KeyError:
 
238
        return bzrdir.format_registry.make_bzrdir("1.9-rich-root")
 
239
 
216
240
def test_suite():
217
241
    from bzrlib.plugins.git import tests
218
242
    return tests.test_suite()