##// END OF EJS Templates
context: remove islink and isexec methods
Matt Mackall -
r6744:d3691d31 default
parent child Browse files
Show More
@@ -238,8 +238,6 class filectx(object):
238 def filerev(self): return self._filerev
238 def filerev(self): return self._filerev
239 def filenode(self): return self._filenode
239 def filenode(self): return self._filenode
240 def flags(self): return self._changectx.flags(self._path)
240 def flags(self): return self._changectx.flags(self._path)
241 def isexec(self): return 'x' in self.flags()
242 def islink(self): return 'l' in self.flags()
243 def filelog(self): return self._filelog
241 def filelog(self): return self._filelog
244
242
245 def rev(self):
243 def rev(self):
@@ -132,7 +132,7 def filemerge(repo, mynode, orig, fcd, f
132 ui = repo.ui
132 ui = repo.ui
133 fd = fcd.path()
133 fd = fcd.path()
134 binary = isbin(fcd) or isbin(fco) or isbin(fca)
134 binary = isbin(fcd) or isbin(fco) or isbin(fca)
135 symlink = fcd.islink() or fco.islink()
135 symlink = 'l' in fcd.flags() + fco.flags()
136 tool, toolpath = _picktool(repo, ui, fd, binary, symlink)
136 tool, toolpath = _picktool(repo, ui, fd, binary, symlink)
137 ui.debug(_("picked tool '%s' for %s (binary %s symlink %s)\n") %
137 ui.debug(_("picked tool '%s' for %s (binary %s symlink %s)\n") %
138 (tool, fd, binary, symlink))
138 (tool, fd, binary, symlink))
@@ -180,9 +180,9 def filemerge(repo, mynode, orig, fcd, f
180 env = dict(HG_FILE=fd,
180 env = dict(HG_FILE=fd,
181 HG_MY_NODE=short(mynode),
181 HG_MY_NODE=short(mynode),
182 HG_OTHER_NODE=str(fco.changectx()),
182 HG_OTHER_NODE=str(fco.changectx()),
183 HG_MY_ISLINK=fcd.islink(),
183 HG_MY_ISLINK='l' in fcd.flags(),
184 HG_OTHER_ISLINK=fco.islink(),
184 HG_OTHER_ISLINK='l' in fco.flags(),
185 HG_BASE_ISLINK=fca.islink())
185 HG_BASE_ISLINK='l' in fca.flags())
186
186
187 if tool == "internal:merge":
187 if tool == "internal:merge":
188 r = simplemerge.simplemerge(a, b, c, label=['local', 'other'])
188 r = simplemerge.simplemerge(a, b, c, label=['local', 'other'])
General Comments 0
You need to be logged in to leave comments. Login now