diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2011-10-25 16:21:02 -0700 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-10-25 16:21:02 -0700 |
commit | e4e439b7bba4b6e26bfd2cc4904242ea120aace5 (patch) | |
tree | 33eda181643612733005dab9ffd735b554e724b4 /cmds.py | |
parent | e39c9988cfa62242be63b003c4b4cbcf3dce5e79 (diff) | |
download | bzr-fastimport-e4e439b7bba4b6e26bfd2cc4904242ea120aace5.tar.gz |
Some refactoring of exporter.
Diffstat (limited to 'cmds.py')
-rw-r--r-- | cmds.py | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -663,13 +663,17 @@ class cmd_fast_export(Command): import_marks=None, export_marks=None, revision=None, plain=True, rewrite_tag_names=False): load_fastimport() + from bzrlib.branch import Branch from bzrlib.plugins.fastimport import exporter if marks: import_marks = export_marks = marks - exporter = exporter.BzrFastExporter(source, - destination=destination, - git_branch=git_branch, checkpoint=checkpoint, + + # Open the source + branch = Branch.open_containing(source)[0] + outf = exporter._get_output_stream(destination) + exporter = exporter.BzrFastExporter(branch, + outf=outf, git_branch=git_branch, checkpoint=checkpoint, import_marks_file=import_marks, export_marks_file=export_marks, revision=revision, verbose=verbose, plain_format=plain, rewrite_tags=rewrite_tag_names) |