317
by Alexander Belchenko
register explorer commands lazily. |
1 |
# Copyright (C) 2009 Canonical Ltd
|
2 |
#
|
|
3 |
# This program is free software; you can redistribute it and/or modify
|
|
4 |
# it under the terms of the GNU General Public License as published by
|
|
5 |
# the Free Software Foundation; either version 2 of the License, or
|
|
6 |
# (at your option) any later version.
|
|
7 |
#
|
|
8 |
# This program is distributed in the hope that it will be useful,
|
|
9 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11 |
# GNU General Public License for more details.
|
|
12 |
#
|
|
13 |
# You should have received a copy of the GNU General Public License
|
|
14 |
# along with this program; if not, write to the Free Software
|
|
15 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
16 |
||
17 |
"""Version Control for Human Beings.
|
|
18 |
||
19 |
Bazaar Explorer is a desktop application providing an easy-to-use
|
|
20 |
interface to the Bazaar version control system. It is designed to
|
|
21 |
be simple enough for casual users of version control, yet powerful
|
|
22 |
enough for experts to use as their primary interface to Bazaar.
|
|
23 |
||
358
by Ian Clatworthy
bazaar-vcs.org -> bazaar.canonical.com |
24 |
Please visit the home page, http://doc.bazaar.canonical.com/explorer/en/,
|
317
by Alexander Belchenko
register explorer commands lazily. |
25 |
for more information.
|
26 |
"""
|
|
27 |
||
495
by Alexander Belchenko
starting 1.1.2 development |
28 |
version_info = (1, 1, 2, 'dev', 0) |
317
by Alexander Belchenko
register explorer commands lazily. |
29 |
__version__ = '.'.join(map(str, version_info)) |
30 |
||
31 |
||
356
by Ian Clatworthy
ignore .bzrbranches directory |
32 |
from bzrlib import ignores |
317
by Alexander Belchenko
register explorer commands lazily. |
33 |
from bzrlib.commands import plugin_cmds |
34 |
||
356
by Ian Clatworthy
ignore .bzrbranches directory |
35 |
|
36 |
ignores.add_runtime_ignores(['./.bzrbranches']) |
|
37 |
||
38 |
||
317
by Alexander Belchenko
register explorer commands lazily. |
39 |
lazy_commands = ( |
40 |
# name, aliases, module
|
|
41 |
('cmd_explorer', ['explore'], 'bzrlib.plugins.explorer.lib.commands'), |
|
352.1.1
by Ian Clatworthy
first cut at using a registry of model building routines |
42 |
('cmd_init_workspace', ['new'], 'bzrlib.plugins.explorer.lib.commands'), |
43 |
('cmd_qinit_workspace', ['qnew'], 'bzrlib.plugins.explorer.lib.commands'), |
|
317
by Alexander Belchenko
register explorer commands lazily. |
44 |
('cmd_qcheckout_ala_explorer', [], 'bzrlib.plugins.explorer.lib.commands'), |
45 |
)
|
|
46 |
||
47 |
for name, aliases, module in lazy_commands: |
|
48 |
plugin_cmds.register_lazy(name, aliases, module) |
|
49 |
||
50 |
||
51 |
def load_tests(basic_tests, module, loader): |
|
52 |
from bzrlib.plugins.explorer.tests import load_tests |
|
53 |
return load_tests(basic_tests, module, loader) |