changeset 19603:a92302f48a56

basefilectx: move isbinary from filectx
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 11 Aug 2013 22:56:30 -0500
parents 018ee491a6be
children ef7c47e4002f
files mercurial/context.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Sun Aug 11 22:56:18 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:56:30 2013 -0500
@@ -517,6 +517,12 @@
     def path(self):
         return self._path
 
+    def isbinary(self):
+        try:
+            return util.binary(self.data())
+        except IOError:
+            return False
+
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
        filerevision convenient."""
@@ -577,12 +583,6 @@
     def size(self):
         return self._filelog.size(self._filerev)
 
-    def isbinary(self):
-        try:
-            return util.binary(self.data())
-        except IOError:
-            return False
-
     def cmp(self, fctx):
         """compare with other file context