changeset 19681:cfc4ae65023f

commitablectx: move added from workingctx
author Sean Farley <sean.michael.farley@gmail.com>
date Wed, 14 Aug 2013 16:15:18 -0500
parents fc33fcfa08f2
children 42ffc7f31acf
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Wed Aug 14 16:14:58 2013 -0500
+++ b/mercurial/context.py	Wed Aug 14 16:15:18 2013 -0500
@@ -972,6 +972,8 @@
 
     def modified(self):
         return self._status[0]
+    def added(self):
+        return self._status[1]
 
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
@@ -999,8 +1001,6 @@
             p = p[:-1]
         return [changectx(self._repo, x) for x in p]
 
-    def added(self):
-        return self._status[1]
     def removed(self):
         return self._status[2]
     def deleted(self):