##// 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 517 def path(self):
518 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 526 class filectx(basefilectx):
521 527 """A filecontext object makes access to data related to a particular
522 528 filerevision convenient."""
@@ -577,12 +583,6 b' class filectx(basefilectx):'
577 583 def size(self):
578 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 586 def cmp(self, fctx):
587 587 """compare with other file context
588 588
General Comments 0
You need to be logged in to leave comments. Login now