changeset 19703:d2936bec530b

commitablefilectx: move __nonzero__ from workingfilectx
author Sean Farley <sean.michael.farley@gmail.com>
date Thu, 15 Aug 2013 13:23:06 -0500
parents d25fdd4c2fd1
children bad0bd99ac96
files mercurial/context.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Thu Aug 15 13:12:50 2013 -0500
+++ b/mercurial/context.py	Thu Aug 15 13:23:06 2013 -0500
@@ -1202,6 +1202,9 @@
         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."""
@@ -1212,9 +1215,6 @@
     def _changectx(self):
         return workingctx(self._repo)
 
-    def __nonzero__(self):
-        return True
-
     def data(self):
         return self._repo.wread(self._path)
     def renamed(self):