commitablectx: move clean from workingctx
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 14 Aug 2013 16:22:42 -0500
changeset 19686 e189c8ff33d3
parent 19685 e4088cec976b
child 19687 54b3b4821bfb
commitablectx: move clean from workingctx
mercurial/context.py
--- a/mercurial/context.py	Wed Aug 14 16:22:32 2013 -0500
+++ b/mercurial/context.py	Wed Aug 14 16:22:42 2013 -0500
@@ -984,6 +984,9 @@
     def ignored(self):
         assert self._ignored is not None  # must call status first
         return self._ignored
+    def clean(self):
+        assert self._clean is not None  # must call status first
+        return self._clean
 
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
@@ -1011,9 +1014,6 @@
             p = p[:-1]
         return [changectx(self._repo, x) for x in p]
 
-    def clean(self):
-        assert self._clean is not None  # must call status first
-        return self._clean
     def branch(self):
         return encoding.tolocal(self._extra['branch'])
     def closesbranch(self):