##// END OF EJS Templates
filectx: move size to basefilectx...
Jun Wu -
r32236:842ea95d default
parent child Browse files
Show More
@@ -801,6 +801,8 b' class basefilectx(object):'
801 return self._copied
801 return self._copied
802 def repo(self):
802 def repo(self):
803 return self._repo
803 return self._repo
804 def size(self):
805 return len(self.data())
804
806
805 def path(self):
807 def path(self):
806 return self._path
808 return self._path
@@ -2065,8 +2067,6 b' class memfilectx(committablefilectx):'
2065
2067
2066 def data(self):
2068 def data(self):
2067 return self._data
2069 return self._data
2068 def size(self):
2069 return len(self.data())
2070
2070
2071 def remove(self, ignoremissing=False):
2071 def remove(self, ignoremissing=False):
2072 """wraps unlink for a repo's working directory"""
2072 """wraps unlink for a repo's working directory"""
General Comments 0
You need to be logged in to leave comments. Login now