# HG changeset patch # User Matt Mackall # Date 1214506336 18000 # Node ID d3691d31fc9ce84c3a125b02d361a0c13c51785e # Parent 86e8187b721a92315bb01e1765c3f6c4142ea4e5 context: remove islink and isexec methods diff -r 86e8187b721a -r d3691d31fc9c mercurial/context.py --- a/mercurial/context.py Thu Jun 26 13:46:34 2008 -0500 +++ b/mercurial/context.py Thu Jun 26 13:52:16 2008 -0500 @@ -238,8 +238,6 @@ def filerev(self): return self._filerev def filenode(self): return self._filenode def flags(self): return self._changectx.flags(self._path) - def isexec(self): return 'x' in self.flags() - def islink(self): return 'l' in self.flags() def filelog(self): return self._filelog def rev(self): diff -r 86e8187b721a -r d3691d31fc9c mercurial/filemerge.py --- a/mercurial/filemerge.py Thu Jun 26 13:46:34 2008 -0500 +++ b/mercurial/filemerge.py Thu Jun 26 13:52:16 2008 -0500 @@ -132,7 +132,7 @@ ui = repo.ui fd = fcd.path() binary = isbin(fcd) or isbin(fco) or isbin(fca) - symlink = fcd.islink() or fco.islink() + symlink = 'l' in fcd.flags() + fco.flags() tool, toolpath = _picktool(repo, ui, fd, binary, symlink) ui.debug(_("picked tool '%s' for %s (binary %s symlink %s)\n") % (tool, fd, binary, symlink)) @@ -180,9 +180,9 @@ env = dict(HG_FILE=fd, HG_MY_NODE=short(mynode), HG_OTHER_NODE=str(fco.changectx()), - HG_MY_ISLINK=fcd.islink(), - HG_OTHER_ISLINK=fco.islink(), - HG_BASE_ISLINK=fca.islink()) + HG_MY_ISLINK='l' in fcd.flags(), + HG_OTHER_ISLINK='l' in fco.flags(), + HG_BASE_ISLINK='l' in fca.flags()) if tool == "internal:merge": r = simplemerge.simplemerge(a, b, c, label=['local', 'other'])