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

  • Committer: Jelmer Vernooij
  • Date: 2018-03-26 09:52:59 UTC
  • mto: (0.200.1934 work)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180326095259-bfjlfm21dfam0pm5
Fix some more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
584
584
 
585
585
def entry_mode(entry):
586
586
    """Determine the git file mode for an inventory entry."""
587
 
    return object_mode(entry.kind, entry.executable)
 
587
    return object_mode(entry.kind, getattr(entry, 'executable', False))
588
588
 
589
589
 
590
590
def directory_to_tree(children, lookup_ie_sha1, unusual_modes, empty_file_name,