Commit 19652d47 authored by Edward Cree's avatar Edward Cree Committed by Eric S. Raymond

Fix rebuild_repo to correctly construct importer command

parent ca73ad2f
......@@ -6341,7 +6341,8 @@ def rebuild_repo(repo, target, options, preferred):
assert tfdesc > -1 # pacify pylint
with open(tfname, b"wb") as tp:
repo.fast_export(range(len(repo)), tp, options, progress=verbose>0, target=preferred)
do_or_die(vcs.exporter % parameters, b"import")
parameters[b"tempfile"] = tfname
do_or_die(vcs.importer % parameters, b"import")
finally:
os.remove(tfname)
os.close(tfdesc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment