commitablectx: move _status from workingctx
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 14 Aug 2013 15:41:22 -0500
changeset 19672 375986c02539
parent 19671 367e95bba6e8
child 19673 53a3a8d38301
commitablectx: move _status from workingctx
mercurial/context.py
--- a/mercurial/context.py	Wed Aug 14 15:34:18 2013 -0500
+++ b/mercurial/context.py	Wed Aug 14 15:41:22 2013 -0500
@@ -933,6 +933,10 @@
 
         return man
 
+    @propertycache
+    def _status(self):
+        return self._repo.status()[:4]
+
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
     the current working directory convenient.
@@ -953,10 +957,6 @@
                 yield f
 
     @propertycache
-    def _status(self):
-        return self._repo.status()[:4]
-
-    @propertycache
     def _user(self):
         return self._repo.ui.username()