diff -r c38c15d4ce48 -r 842ea95d45dc mercurial/context.py --- 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"""