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

  • Committer: Jelmer Vernooij
  • Date: 2019-03-04 05:10:44 UTC
  • mfrom: (7293 work)
  • mto: This revision was merged to the branch mainline in revision 7294.
  • Revision ID: jelmer@jelmer.uk-20190304051044-vph4s8p9qvpy2qe9
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
 
122
122
def kind_to_mode(kind, executable):
123
123
    if kind == "file":
124
 
        if executable == True:
 
124
        if executable is True:
125
125
            return stat.S_IFREG | 0o755
126
 
        elif executable == False:
 
126
        elif executable is False:
127
127
            return stat.S_IFREG | 0o644
128
128
        else:
129
129
            raise AssertionError("Executable %r invalid" % executable)