changeset 32240:842ea95d45dc

filectx: move size to basefilectx See previous patch for context - avoid code duplication.
author Jun Wu <quark@fb.com>
date Tue, 09 May 2017 19:53:31 -0700
parents c38c15d4ce48
children 651ee1681964
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Tue May 09 19:48:57 2017 -0700
+++ b/mercurial/context.py	Tue May 09 19:53:31 2017 -0700
@@ -801,6 +801,8 @@
         return self._copied
     def repo(self):
         return self._repo
+    def size(self):
+        return len(self.data())
 
     def path(self):
         return self._path
@@ -2065,8 +2067,6 @@
 
     def data(self):
         return self._data
-    def size(self):
-        return len(self.data())
 
     def remove(self, ignoremissing=False):
         """wraps unlink for a repo's working directory"""