summaryrefslogtreecommitdiff
path: root/exporters
diff options
context:
space:
mode:
authorIan Clatworthy <ian.clatworthy@canonical.com>2009-08-11 18:31:19 +1000
committerIan Clatworthy <ian.clatworthy@canonical.com>2009-08-11 18:31:19 +1000
commit8cade26d59f70cc3e19c2cd9f76a2646b16adc61 (patch)
tree7be8fbd7e324f5ea4076836e4e67ad1b69978614 /exporters
parentb574ad17cbbd14a772386304f21bd98dbb08082d (diff)
downloadbzr-fastimport-8cade26d59f70cc3e19c2cd9f76a2646b16adc61.tar.gz
initial cut at fast-export-from-svn
Diffstat (limited to 'exporters')
-rw-r--r--exporters/__init__.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/exporters/__init__.py b/exporters/__init__.py
index 6255009..68ac105 100644
--- a/exporters/__init__.py
+++ b/exporters/__init__.py
@@ -223,6 +223,17 @@ class SubversionExporter(_Exporter):
self.check_install('Python Subversion', '1.4', None,
['svn.fs', 'svn.core', 'svn.repos'])
+ def generate(self, source, destination, verbose=False, custom=None):
+ """Generate a fast import stream. See _Exporter.generate() for details."""
+ args = ["svn-fast-export.py"]
+ outf, base, marks = self.get_output_info(destination)
+ # Marks aren't supported by svn-fast-export so no need to set that option
+ if custom:
+ args.extend(custom)
+ args.append(source)
+ retcode = self.execute_exporter_script(args, outf)
+ self.report_results(retcode, destination)
+
def fast_export_from(source, destination, tool, verbose=False, custom=None):
# Get the exporter