commitablectx: move files from workingctx
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 14 Aug 2013 16:09:45 -0500
changeset 19679 f21804f1582e
parent 19678 897c2dbc0256
child 19680 fc33fcfa08f2
commitablectx: move files from workingctx
mercurial/context.py
--- a/mercurial/context.py	Wed Aug 14 16:09:30 2013 -0500
+++ b/mercurial/context.py	Wed Aug 14 16:09:45 2013 -0500
@@ -967,6 +967,8 @@
         return self._date
     def description(self):
         return self._text
+    def files(self):
+        return sorted(self._status[0] + self._status[1] + self._status[2])
 
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
@@ -994,9 +996,6 @@
             p = p[:-1]
         return [changectx(self._repo, x) for x in p]
 
-    def files(self):
-        return sorted(self._status[0] + self._status[1] + self._status[2])
-
     def modified(self):
         return self._status[0]
     def added(self):