/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/exporter.py

  • Committer: Jelmer Vernooij
  • Date: 2018-10-30 02:24:12 UTC
  • mto: This revision was merged to the branch mainline in revision 7170.
  • Revision ID: jelmer@jelmer.uk-20181030022412-33hzkg6wg2tfimu4
Fix more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
494
494
        # Record modifications
495
495
        for path, id_, kind in changes.added + my_modified + rd_modifies:
496
496
            if kind == 'file':
497
 
                text = tree_new.get_file_text(path, id_)
 
497
                text = tree_new.get_file_text(path)
498
498
                file_cmds.append(commands.FileModifyCommand(path.encode("utf-8"),
499
499
                    helpers.kind_to_mode(
500
 
                        'file', tree_new.is_executable(path, id_)),
 
500
                        'file', tree_new.is_executable(path)),
501
501
                    None, text))
502
502
            elif kind == 'symlink':
503
503
                file_cmds.append(commands.FileModifyCommand(path.encode("utf-8"),
504
504
                    helpers.kind_to_mode('symlink', False),
505
 
                    None, tree_new.get_symlink_target(path, id_)))
 
505
                    None, tree_new.get_symlink_target(path)))
506
506
            elif kind == 'directory':
507
507
                if not self.plain_format:
508
508
                    file_cmds.append(