/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/fastimport/cmds.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-01-01 23:55:19 UTC
  • mfrom: (7211.12.2 fast-export-default-out)
  • Revision ID: breezy.the.bot@gmail.com-20190101235519-s3qiot9brigweze2
Properly unwrap sys.stdout when writing a fast-export stream.

Merged from https://code.launchpad.net/~jelmer/brz/fast-export-default-out/+merge/359558

Show diffs side-by-side

added added

removed removed

Lines of Context:
497
497
            source = "."
498
498
        branch = Branch.open_containing(source)[0]
499
499
        outf = exporter._get_output_stream(destination)
500
 
        exporter = exporter.BzrFastExporter(branch,
501
 
                                            outf=outf, ref=b"refs/heads/%s" % git_branch.encode('utf-8'), checkpoint=checkpoint,
502
 
                                            import_marks_file=import_marks, export_marks_file=export_marks,
503
 
                                            revision=revision, verbose=verbose, plain_format=plain,
504
 
                                            rewrite_tags=rewrite_tag_names, no_tags=no_tags, baseline=baseline)
 
500
        exporter = exporter.BzrFastExporter(
 
501
            branch,
 
502
            outf=outf, ref=b"refs/heads/%s" % git_branch.encode('utf-8'),
 
503
            checkpoint=checkpoint, import_marks_file=import_marks,
 
504
            export_marks_file=export_marks, revision=revision, verbose=verbose,
 
505
            plain_format=plain, rewrite_tags=rewrite_tag_names,
 
506
            no_tags=no_tags, baseline=baseline)
505
507
        return exporter.run()