mercurial/context.py
changeset 6679 d286ec1bdcff
parent 6519 a7582980d654
child 6685 76021ec849c8
equal deleted inserted replaced
6678:1eba8e8f2cce 6679:d286ec1bdcff
   524         is_link = util.linkfunc(self._repo.root,
   524         is_link = util.linkfunc(self._repo.root,
   525                                 lambda p: flag and 'l' in flag)
   525                                 lambda p: flag and 'l' in flag)
   526         is_exec = util.execfunc(self._repo.root,
   526         is_exec = util.execfunc(self._repo.root,
   527                                 lambda p: flag and 'x' in flag)
   527                                 lambda p: flag and 'x' in flag)
   528         try:
   528         try:
   529             return (is_link(path) and 'l' or '') + (is_exec(path) and 'e' or '')
   529             return (is_link(path) and 'l' or '') + (is_exec(path) and 'x' or '')
   530         except OSError:
   530         except OSError:
   531             pass
   531             pass
   532 
   532 
   533         if not node or path in self.deleted() or path in self.removed():
   533         if not node or path in self.deleted() or path in self.removed():
   534             return ''
   534             return ''