##// END OF EJS Templates
commitablefilectx: move __nonzero__ from workingfilectx
Sean Farley -
r19703:d2936bec default
parent child Browse files
Show More
@@ -1202,6 +1202,9 b' class commitablefilectx(basefilectx):'
1202 1202 if ctx:
1203 1203 self._changectx = ctx
1204 1204
1205 def __nonzero__(self):
1206 return True
1207
1205 1208 class workingfilectx(commitablefilectx):
1206 1209 """A workingfilectx object makes access to data related to a particular
1207 1210 file in the working directory convenient."""
@@ -1212,9 +1215,6 b' class workingfilectx(commitablefilectx):'
1212 1215 def _changectx(self):
1213 1216 return workingctx(self._repo)
1214 1217
1215 def __nonzero__(self):
1216 return True
1217
1218 1218 def data(self):
1219 1219 return self._repo.wread(self._path)
1220 1220 def renamed(self):
General Comments 0
You need to be logged in to leave comments. Login now