mercurial/context.py
changeset 5399 18f8abefdb2a
parent 5389 26c060922085
child 5407 d7e7902bb190
equal deleted inserted replaced
5398:ecde0b7e0b3f 5399:18f8abefdb2a
   481             except KeyError:
   481             except KeyError:
   482                 return ''
   482                 return ''
   483         
   483         
   484         pnode = self._parents[0].changeset()[0]
   484         pnode = self._parents[0].changeset()[0]
   485         node, flag = self._repo.manifest.find(pnode, path)
   485         node, flag = self._repo.manifest.find(pnode, path)
   486         is_link = util.linkfunc(self._repo.root, lambda: 'l' in flag)
   486         is_link = util.linkfunc(self._repo.root, lambda p: 'l' in flag)
   487         is_exec = util.execfunc(self._repo.root, lambda: 'x' in flag)
   487         is_exec = util.execfunc(self._repo.root, lambda p: 'x' in flag)
   488         try:
   488         try:
   489             return (is_link(path) and 'l' or '') + (is_exec(path) and 'e' or '')
   489             return (is_link(path) and 'l' or '') + (is_exec(path) and 'e' or '')
   490         except OSError:
   490         except OSError:
   491             pass
   491             pass
   492 
   492