##// END OF EJS Templates
basefilectx: move isbinary from filectx
Sean Farley -
r19603:a92302f4 default
parent child Browse files
Show More
@@ -517,6 +517,12 b' class basefilectx(object):'
517 def path(self):
517 def path(self):
518 return self._path
518 return self._path
519
519
520 def isbinary(self):
521 try:
522 return util.binary(self.data())
523 except IOError:
524 return False
525
520 class filectx(basefilectx):
526 class filectx(basefilectx):
521 """A filecontext object makes access to data related to a particular
527 """A filecontext object makes access to data related to a particular
522 filerevision convenient."""
528 filerevision convenient."""
@@ -577,12 +583,6 b' class filectx(basefilectx):'
577 def size(self):
583 def size(self):
578 return self._filelog.size(self._filerev)
584 return self._filelog.size(self._filerev)
579
585
580 def isbinary(self):
581 try:
582 return util.binary(self.data())
583 except IOError:
584 return False
585
586 def cmp(self, fctx):
586 def cmp(self, fctx):
587 """compare with other file context
587 """compare with other file context
588
588
General Comments 0
You need to be logged in to leave comments. Login now