/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
0.436.25 by Jelmer Vernooij
Add setup.py.
1
# Copyright (C) 2007 by Jelmer Vernooij <jelmer@samba.org>
0.436.2 by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands.
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
0.436.131 by Jelmer Vernooij
Change license back to GPLv2+
5
# the Free Software Foundation; either version 2 of the License, or
0.436.2 by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands.
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
0.436.25 by Jelmer Vernooij
Add setup.py.
16
"""Rebase support.
17
18
The Bazaar rebase plugin adds support for rebasing branches to Bazaar.
19
It adds the command 'rebase' to Bazaar. When conflicts occur when replaying
20
patches, the user can resolve the conflict and continue the rebase using the
21
'rebase-continue' command or abort using the 'rebase-abort' command.
22
"""
0.436.1 by Jelmer Vernooij
Add framework for git-rebase plugin.
23
0.436.115 by Jelmer Vernooij
Register commands lazily, use bzrlib,api to check bzr versions.
24
import bzrlib
0.436.117 by Jelmer Vernooij
Fix typo.
25
import bzrlib.api
0.436.115 by Jelmer Vernooij
Register commands lazily, use bzrlib,api to check bzr versions.
26
from bzrlib.commands import plugin_cmds
0.436.1 by Jelmer Vernooij
Add framework for git-rebase plugin.
27
0.436.150 by Jelmer Vernooij
Start on 0.5.1.
28
version_info = (0, 5, 1, 'dev', 0)
0.436.49 by Jelmer Vernooij
Fix locking.
29
if version_info[3] == 'final':
30
    version_string = '%d.%d.%d' % version_info[:3]
31
else:
32
    version_string = '%d.%d.%d%s%d' % version_info
33
__version__ = version_string
0.436.25 by Jelmer Vernooij
Add setup.py.
34
__author__ = 'Jelmer Vernooij <jelmer@samba.org>'
35
0.436.142 by Jelmer Vernooij
mark as compatible with 1.14.0 only.
36
COMPATIBLE_BZR_VERSIONS = [(1, 14, 0), (1, 15, 0)]
0.436.115 by Jelmer Vernooij
Register commands lazily, use bzrlib,api to check bzr versions.
37
38
bzrlib.api.require_any_api(bzrlib, COMPATIBLE_BZR_VERSIONS)
39
40
for cmd in ["replay", "rebase", "rebase_abort", "rebase_continue",
41
            "rebase_todo"]:
42
    plugin_cmds.register_lazy("cmd_%s" % cmd, [], 
43
        "bzrlib.plugins.rebase.commands")
0.436.48 by Jelmer Vernooij
Add replay command.
44
0.436.139 by Jelmer Vernooij
Import foreign-mapping-upgrade.
45
plugin_cmds.register_lazy('cmd_foreign_mapping_upgrade', ['svn-upgrade'], 
46
                          'bzrlib.plugins.rebase.commands')
47
0.436.4 by Jelmer Vernooij
Add some tests.
48
0.436.2 by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands.
49
def test_suite():
0.436.74 by Jelmer Vernooij
Add pydoctor file, more docstrings.
50
    """Determine the testsuite for bzr-rebase."""
0.436.2 by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands.
51
    from unittest import TestSuite
52
    from bzrlib.tests import TestUtil
53
54
    loader = TestUtil.TestLoader()
55
    suite = TestSuite()
0.436.145 by Jelmer Vernooij
Fix test.
56
    testmod_names = [
57
        'test_blackbox',
58
        'test_maptree',
59
        'test_rebase',
60
        'test_upgrade']
0.436.16 by Jelmer Vernooij
Some more work on maptree.
61
    suite.addTest(loader.loadTestsFromModuleNames(
62
                              ["%s.%s" % (__name__, i) for i in testmod_names]))
0.436.2 by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands.
63
64
    return suite