bzr branch
http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
|
0.64.311
by John Arbash Meinel
Quick typo fix from Martin Ueding |
1 |
# Copyright (C) 2008-2011 Canonical Ltd
|
|
0.64.1
by Ian Clatworthy
1st cut: gfi parser + --info processing method |
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
|
|
|
0.64.334
by Jelmer Vernooij
Remove old FSF address. Thanks Dan Callaghan. |
14 |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
0.64.1
by Ian Clatworthy
1st cut: gfi parser + --info processing method |
15 |
|
|
0.64.81
by Ian Clatworthy
'bzr help fastimport' now provides useful help |
16 |
r"""FastImport Plugin |
17 |
=================
|
|
18 |
||
|
0.93.12
by Ian Clatworthy
NEWS item and doco tweaks |
19 |
The fastimport plugin provides stream-based importing and exporting of
|
20 |
data into and out of Bazaar. As well as enabling interchange between
|
|
|
0.64.81
by Ian Clatworthy
'bzr help fastimport' now provides useful help |
21 |
multiple VCS tools, fastimport/export can be useful for complex branch
|
|
0.77.1
by Ian Clatworthy
initial cut at fast-import-filter |
22 |
operations, e.g. partitioning off part of a code base in order to Open
|
|
0.64.81
by Ian Clatworthy
'bzr help fastimport' now provides useful help |
23 |
Source it.
|
24 |
||
25 |
The normal import recipe is::
|
|
26 |
||
|
0.93.12
by Ian Clatworthy
NEWS item and doco tweaks |
27 |
front-end > project.fi
|
|
0.64.211
by Ian Clatworthy
implicitly uncompress if a fast-import source ends in .gz |
28 |
bzr fast-import project.fi project.bzr
|
29 |
||
30 |
In either case, if you wish to save disk space, project.fi can be
|
|
31 |
compressed to gzip format after it is generated like this::
|
|
32 |
||
33 |
(generate project.fi)
|
|
34 |
gzip project.fi
|
|
35 |
bzr fast-import project.fi.gz project.bzr
|
|
|
0.93.12
by Ian Clatworthy
NEWS item and doco tweaks |
36 |
|
37 |
The list of known front-ends and their status is documented on
|
|
|
0.136.2
by Jelmer Vernooij
remove more references to fast-export-from-*. |
38 |
http://bazaar-vcs.org/BzrFastImport/FrontEnds.
|
|
0.93.12
by Ian Clatworthy
NEWS item and doco tweaks |
39 |
|
40 |
Once a fast-import dump file is created, it can be imported into a
|
|
41 |
Bazaar repository using the fast-import command. If required, you can
|
|
42 |
manipulate the stream first using the fast-import-filter command.
|
|
43 |
This is useful for creating a repository with just part of a project
|
|
44 |
or for removing large old binaries (say) from history that are no longer
|
|
45 |
valuable to retain. For further details on importing, manipulating and
|
|
46 |
reporting on fast-import streams, see the online help for the commands::
|
|
|
0.64.81
by Ian Clatworthy
'bzr help fastimport' now provides useful help |
47 |
|
48 |
bzr help fast-import
|
|
49 |
||
|
0.93.12
by Ian Clatworthy
NEWS item and doco tweaks |
50 |
Finally, you may wish to generate a fast-import dump file from a Bazaar
|
51 |
repository. The fast-export command is provided for that purpose.
|
|
52 |
||
|
0.64.81
by Ian Clatworthy
'bzr help fastimport' now provides useful help |
53 |
To report bugs or publish enhancements, visit the bzr-fastimport project
|
54 |
page on Launchpad, https://launchpad.net/bzr-fastimport.
|
|
55 |
"""
|
|
|
0.64.1
by Ian Clatworthy
1st cut: gfi parser + --info processing method |
56 |
|
|
7290.33.2
by Jelmer Vernooij
Add version_info to some plugins. |
57 |
from ... import version_info # noqa: F401 |
|
6628.1.2
by Jelmer Vernooij
Fix imports, move exporter.py, drop explorer metadata. |
58 |
from ...commands import plugin_cmds |
|
0.64.1
by Ian Clatworthy
1st cut: gfi parser + --info processing method |
59 |
|
60 |
||
|
0.123.13
by Jelmer Vernooij
Check for availability of fastimport before running tests. |
61 |
def load_fastimport(): |
62 |
"""Load the fastimport module or raise an appropriate exception.""" |
|
63 |
try: |
|
64 |
import fastimport |
|
|
6658.1.1
by Martin
Nibble away at getting test_selftest to pass on Python 3 |
65 |
except ImportError as e: |
|
6628.1.2
by Jelmer Vernooij
Fix imports, move exporter.py, drop explorer metadata. |
66 |
from ...errors import DependencyNotPresent |
|
0.64.300
by Jelmer Vernooij
Clarify installation requirements for python-fastimport. |
67 |
raise DependencyNotPresent("fastimport", |
|
7143.15.2
by Jelmer Vernooij
Run autopep8. |
68 |
"fastimport requires the fastimport python module") |
|
6929.13.5
by Jelmer Vernooij
Check for fastimport >= 0.9.8. |
69 |
if fastimport.__version__ < (0, 9, 8): |
|
6929.13.6
by Jelmer Vernooij
Fix import. |
70 |
from ...errors import DependencyNotPresent |
|
6929.13.5
by Jelmer Vernooij
Check for fastimport >= 0.9.8. |
71 |
raise DependencyNotPresent("fastimport", |
|
7143.15.2
by Jelmer Vernooij
Run autopep8. |
72 |
"fastimport requires at least version 0.9.8 of the "
|
73 |
"fastimport python module") |
|
|
0.123.13
by Jelmer Vernooij
Check for availability of fastimport before running tests. |
74 |
|
75 |
||
|
0.64.1
by Ian Clatworthy
1st cut: gfi parser + --info processing method |
76 |
def test_suite(): |
|
6628.1.2
by Jelmer Vernooij
Fix imports, move exporter.py, drop explorer metadata. |
77 |
from . import tests |
|
0.64.1
by Ian Clatworthy
1st cut: gfi parser + --info processing method |
78 |
return tests.test_suite() |
79 |
||
80 |
||
|
0.64.286
by Jelmer Vernooij
Move command implementations into a separate cmds module. |
81 |
for name in [ |
82 |
"fast_import", |
|
83 |
"fast_export", |
|
84 |
]:
|
|
|
7143.15.2
by Jelmer Vernooij
Run autopep8. |
85 |
plugin_cmds.register_lazy( |
86 |
"cmd_%s" % name, [], "breezy.plugins.fastimport.cmds") |