comparison mercurial/context.py @ 6679:d286ec1bdcff

context: fix workingctx.fileflags() execute bit
author Patrick Mezard <pmezard@gmail.com>
date Sun, 15 Jun 2008 13:01:01 +0200
parents a7582980d654
children 76021ec849c8
comparison
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 ''