Mercurial > hg-stable
changeset 6529:0c611355481b
Merge with crew-stable
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 12 Apr 2008 21:34:01 +0200 |
parents | bd6bf5798f39 (current diff) a7582980d654 (diff) |
children | 4b92591c69a7 |
files | mercurial/context.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Sat Apr 12 20:03:54 2008 +0200 +++ b/mercurial/context.py Sat Apr 12 21:34:01 2008 +0200 @@ -533,8 +533,10 @@ pnode = self._parents[0].changeset()[0] orig = self._repo.dirstate.copies().get(path, path) node, flag = self._repo.manifest.find(pnode, orig) - is_link = util.linkfunc(self._repo.root, lambda p: 'l' in flag) - is_exec = util.execfunc(self._repo.root, lambda p: 'x' in flag) + is_link = util.linkfunc(self._repo.root, + lambda p: flag and 'l' in flag) + is_exec = util.execfunc(self._repo.root, + lambda p: flag and 'x' in flag) try: return (is_link(path) and 'l' or '') + (is_exec(path) and 'e' or '') except OSError: