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.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.161
by Jelmer Vernooij
Fix brown paper bag issue in 0.5.2 release. |
28 |
from info import ( |
29 |
bzr_commands, |
|
|
0.436.160
by Jelmer Vernooij
Provide data for bzr plugin info. |
30 |
bzr_plugin_version as version_info, |
31 |
bzr_compatible_versions, |
|
32 |
)
|
|
33 |
||
|
0.449.6
by Jonathan Riddell
translations for bzr 2.5, not for older |
34 |
try: |
35 |
from bzrlib.i18n import install_translations, add_fallback |
|
36 |
except ImportError: # No translations for bzr < 2.5 |
|
37 |
gettext = lambda x: x |
|
38 |
else: |
|
39 |
import os, sys |
|
|
0.436.239
by Jelmer Vernooij
Merge support for translations. |
40 |
locale_base = os.path.dirname( |
41 |
unicode(__file__, sys.getfilesystemencoding())) |
|
42 |
translation = install_translations(domain='bzr-rewrite', |
|
43 |
locale_base=locale_base) |
|
|
0.449.6
by Jonathan Riddell
translations for bzr 2.5, not for older |
44 |
gettext = translation.ugettext |
45 |
add_fallback(translation) |
|
|
0.449.1
by Jonathan Riddell
add gettext to strings |
46 |
|
|
0.436.49
by Jelmer Vernooij
Fix locking. |
47 |
if version_info[3] == 'final': |
48 |
version_string = '%d.%d.%d' % version_info[:3] |
|
49 |
else: |
|
50 |
version_string = '%d.%d.%d%s%d' % version_info |
|
51 |
__version__ = version_string |
|
|
0.436.25
by Jelmer Vernooij
Add setup.py. |
52 |
__author__ = 'Jelmer Vernooij <jelmer@samba.org>' |
53 |
||
|
0.436.160
by Jelmer Vernooij
Provide data for bzr plugin info. |
54 |
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. |
55 |
|
|
0.436.179
by Jelmer Vernooij
Fix makefile. |
56 |
if __name__ == 'bzrlib.plugins.rebase': |
|
0.449.6
by Jonathan Riddell
translations for bzr 2.5, not for older |
57 |
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'. |
58 |
|
|
0.436.161
by Jelmer Vernooij
Fix brown paper bag issue in 0.5.2 release. |
59 |
for cmd in bzr_commands: |
|
0.436.177
by Jelmer Vernooij
Remove trailing whitespace. |
60 |
plugin_cmds.register_lazy("cmd_%s" % cmd, [], |
|
0.436.178
by Jelmer Vernooij
Finish rename to 'bzr-rewrite'. |
61 |
"bzrlib.plugins.rewrite.commands") |
|
0.436.48
by Jelmer Vernooij
Add replay command. |
62 |
|
|
0.436.4
by Jelmer Vernooij
Add some tests. |
63 |
|
|
0.436.2
by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands. |
64 |
def test_suite(): |
|
0.436.185
by Jelmer Vernooij
Move tests to subdir. |
65 |
"""Returns the testsuite for bzr-rewrite.""" |
|
0.436.2
by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands. |
66 |
from unittest import TestSuite |
|
0.436.185
by Jelmer Vernooij
Move tests to subdir. |
67 |
from bzrlib.plugins.rewrite import tests |
|
0.436.2
by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands. |
68 |
suite = TestSuite() |
|
0.436.185
by Jelmer Vernooij
Move tests to subdir. |
69 |
suite.addTest(tests.test_suite()) |
|
0.436.2
by Jelmer Vernooij
Add stubs for testsuite, rebase-continue and rebase-abort commands. |
70 |
return suite |