summaryrefslogtreecommitdiff
path: root/cmds.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmds.py')
-rw-r--r--cmds.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/cmds.py b/cmds.py
index 06dc1f7..7e20a1d 100644
--- a/cmds.py
+++ b/cmds.py
@@ -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)