commitablectx: move modified from workingctx
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 14 Aug 2013 16:14:58 -0500
changeset 19680 fc33fcfa08f2
parent 19679 f21804f1582e
child 19681 cfc4ae65023f
commitablectx: move modified from workingctx
mercurial/context.py
--- a/mercurial/context.py	Wed Aug 14 16:09:45 2013 -0500
+++ b/mercurial/context.py	Wed Aug 14 16:14:58 2013 -0500
@@ -970,6 +970,9 @@
     def files(self):
         return sorted(self._status[0] + self._status[1] + self._status[2])
 
+    def modified(self):
+        return self._status[0]
+
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
     the current working directory convenient.
@@ -996,8 +999,6 @@
             p = p[:-1]
         return [changectx(self._repo, x) for x in p]
 
-    def modified(self):
-        return self._status[0]
     def added(self):
         return self._status[1]
     def removed(self):