~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

Added set_executability

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
                            normpath,
73
73
                            realpath,
74
74
                            relpath,
75
 
                            rename)
 
75
                            rename,
 
76
                            supports_executable,
 
77
                            )
76
78
from bzrlib.textui import show_status
77
79
import bzrlib.tree
78
80
from bzrlib.trace import mutter
324
326
        return self._hashcache.get_sha1(path)
325
327
 
326
328
    def is_executable(self, file_id):
327
 
        if os.name == "nt":
 
329
        if not supports_executable():
328
330
            return self._inventory[file_id].executable
329
331
        else:
330
332
            path = self._inventory.id2path(file_id)