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.177
by Jelmer Vernooij
Remove trailing whitespace. |
2 |
#
|
|
0.436.2
by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands. |
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.241
by Jelmer Vernooij
Use absolute import. |
24 |
from __future__ import absolute_import |
25 |
||
|
0.436.115
by Jelmer Vernooij
Register commands lazily, use bzrlib,api to check bzr versions. |
26 |
import bzrlib |
|
0.436.117
by Jelmer Vernooij
Fix typo. |
27 |
import bzrlib.api |
|
0.436.115
by Jelmer Vernooij
Register commands lazily, use bzrlib,api to check bzr versions. |
28 |
from bzrlib.commands import plugin_cmds |
|
0.436.1
by Jelmer Vernooij
Add framework for git-rebase plugin. |
29 |
|
|
0.436.241
by Jelmer Vernooij
Use absolute import. |
30 |
from bzrlib.plugins.rewrite.info import ( |
|
0.436.161
by Jelmer Vernooij
Fix brown paper bag issue in 0.5.2 release. |
31 |
bzr_commands, |
|
0.436.160
by Jelmer Vernooij
Provide data for bzr plugin info. |
32 |
bzr_plugin_version as version_info, |
33 |
bzr_compatible_versions, |
|
34 |
)
|
|
35 |
||
|
0.436.245
by Jelmer Vernooij
Drop < 2.5 support. |
36 |
from bzrlib.i18n import load_plugin_translations |
37 |
translation = load_plugin_translations("bzr-rewrite") |
|
38 |
gettext = translation.ugettext |
|
|
0.449.1
by Jonathan Riddell
add gettext to strings |
39 |
|
|
0.436.49
by Jelmer Vernooij
Fix locking. |
40 |
if version_info[3] == 'final': |
41 |
version_string = '%d.%d.%d' % version_info[:3] |
|
42 |
else: |
|
43 |
version_string = '%d.%d.%d%s%d' % version_info |
|
44 |
__version__ = version_string |
|
|
0.436.25
by Jelmer Vernooij
Add setup.py. |
45 |
__author__ = 'Jelmer Vernooij <jelmer@samba.org>' |
46 |
||
|
0.436.160
by Jelmer Vernooij
Provide data for bzr plugin info. |
47 |
bzrlib.api.require_any_api(bzrlib, bzr_compatible_versions) |
|
0.436.115
by Jelmer Vernooij
Register commands lazily, use bzrlib,api to check bzr versions. |
48 |
|
|
0.436.179
by Jelmer Vernooij
Fix makefile. |
49 |
if __name__ == 'bzrlib.plugins.rebase': |
|
0.449.6
by Jonathan Riddell
translations for bzr 2.5, not for older |
50 |
raise ImportError(gettext("The rebase plugin has been renamed to rewrite. Please rename the directory in ~/.bazaar/plugins")) |
|
0.436.178
by Jelmer Vernooij
Finish rename to 'bzr-rewrite'. |
51 |
|
|
0.436.161
by Jelmer Vernooij
Fix brown paper bag issue in 0.5.2 release. |
52 |
for cmd in bzr_commands: |
|
0.436.177
by Jelmer Vernooij
Remove trailing whitespace. |
53 |
plugin_cmds.register_lazy("cmd_%s" % cmd, [], |
|
0.436.178
by Jelmer Vernooij
Finish rename to 'bzr-rewrite'. |
54 |
"bzrlib.plugins.rewrite.commands") |
|
0.436.48
by Jelmer Vernooij
Add replay command. |
55 |
|
|
0.436.4
by Jelmer Vernooij
Add some tests. |
56 |
|
|
0.436.2
by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands. |
57 |
def test_suite(): |
|
0.436.185
by Jelmer Vernooij
Move tests to subdir. |
58 |
"""Returns the testsuite for bzr-rewrite.""" |
|
0.436.2
by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands. |
59 |
from unittest import TestSuite |
|
0.436.185
by Jelmer Vernooij
Move tests to subdir. |
60 |
from bzrlib.plugins.rewrite import tests |
|
0.436.2
by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands. |
61 |
suite = TestSuite() |
|
0.436.185
by Jelmer Vernooij
Move tests to subdir. |
62 |
suite.addTest(tests.test_suite()) |
|
0.436.2
by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands. |
63 |
return suite |