comparison mercurial/scmutil.py @ 18192:f9a89bdd64a6 stable

scmutil: don't try to match modes on filesystems without modes (issue3740)
author Matt Mackall <mpm@selenic.com>
date Thu, 20 Dec 2012 15:52:23 -0600
parents 71c1513fd560
children 2c1276825e93
comparison
equal deleted inserted replaced
18191:e4f17956f45a 18192:f9a89bdd64a6
260 260
261 @util.propertycache 261 @util.propertycache
262 def _cansymlink(self): 262 def _cansymlink(self):
263 return util.checklink(self.base) 263 return util.checklink(self.base)
264 264
265 @util.propertycache
266 def _chmod(self):
267 return util.checkexec(self.base)
268
265 def _fixfilemode(self, name): 269 def _fixfilemode(self, name):
266 if self.createmode is None: 270 if self.createmode is None or not self._chmod:
267 return 271 return
268 os.chmod(name, self.createmode & 0666) 272 os.chmod(name, self.createmode & 0666)
269 273
270 def __call__(self, path, mode="r", text=False, atomictemp=False): 274 def __call__(self, path, mode="r", text=False, atomictemp=False):
271 if self._audit: 275 if self._audit: