Comments
Patch
@@ -1200,23 +1200,23 @@
if filelog is not None:
self._filelog = filelog
if ctx:
self._changectx = ctx
+ def __nonzero__(self):
+ return True
+
class workingfilectx(commitablefilectx):
"""A workingfilectx object makes access to data related to a particular
file in the working directory convenient."""
def __init__(self, repo, path, filelog=None, workingctx=None):
super(workingfilectx, self).__init__(repo, path, filelog, workingctx)
@propertycache
def _changectx(self):
return workingctx(self._repo)
- def __nonzero__(self):
- return True
-
def data(self):
return self._repo.wread(self._path)
def renamed(self):
rp = self._repo.dirstate.copied(self._path)
if not rp: