# HG changeset patch # User Patrick Mezard # Date 1191686073 -7200 # Node ID 18f8abefdb2ae0ec36704d6e4aad2123704ce3de # Parent ecde0b7e0b3f3d260b73eb7f295f6722ec17b8f8 Fix bad lambda prototype in workingctx.fileflags() diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -483,8 +483,8 @@ class workingctx(changectx): pnode = self._parents[0].changeset()[0] node, flag = self._repo.manifest.find(pnode, path) - is_link = util.linkfunc(self._repo.root, lambda: 'l' in flag) - is_exec = util.execfunc(self._repo.root, lambda: 'x' in flag) + is_link = util.linkfunc(self._repo.root, lambda p: 'l' in flag) + is_exec = util.execfunc(self._repo.root, lambda p: 'x' in flag) try: return (is_link(path) and 'l' or '') + (is_exec(path) and 'e' or '') except OSError: