# HG changeset patch # User Matt Mackall # Date 2012-12-20 21:52:23 # Node ID f9a89bdd64a6ce2760f79aeb99fcbaeb5bdaa1e7 # Parent e4f17956f45ae333a7647a24e1f29a64c48eac6c scmutil: don't try to match modes on filesystems without modes (issue3740) diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -262,8 +262,12 @@ class vfs(abstractvfs): def _cansymlink(self): return util.checklink(self.base) + @util.propertycache + def _chmod(self): + return util.checkexec(self.base) + def _fixfilemode(self, name): - if self.createmode is None: + if self.createmode is None or not self._chmod: return os.chmod(name, self.createmode & 0666)