/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/export/tar_exporter.py

  • Committer: Jelmer Vernooij
  • Date: 2017-11-12 14:19:13 UTC
  • mto: This revision was merged to the branch mainline in revision 6819.
  • Revision ID: jelmer@jelmer.uk-20171112141913-ppojmnq7k7n3kuv2
Swap arguments for Tree.is_executable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        item.mtime = tree.get_file_mtime(entry.file_id, tree_path)
53
53
    if entry.kind == "file":
54
54
        item.type = tarfile.REGTYPE
55
 
        if tree.is_executable(entry.file_id, tree_path):
 
55
        if tree.is_executable(tree_path, entry.file_id):
56
56
            item.mode = 0o755
57
57
        else:
58
58
            item.mode = 0o644