Patchwork D5996: committablectx: move status-related methods closer together

login
register
mail settings
Submitter phabricator
Date Feb. 25, 2019, 1:38 a.m.
Message ID <7d4d724000521a2d9d6820e4330cc97d@localhost.localdomain>
Download mbox | patch
Permalink /patch/38922/
State Not Applicable
Headers show

Comments

phabricator - Feb. 25, 2019, 1:38 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2ba96fca8528: committablectx: move status-related methods closer together (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5996?vs=14172&id=14232

REVISION DETAIL
  https://phab.mercurial-scm.org/D5996

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1183,6 +1183,14 @@ 
     def files(self):
         return sorted(self._status.modified + self._status.added +
                       self._status.removed)
+    def modified(self):
+        return self._status.modified
+    def added(self):
+        return self._status.added
+    def removed(self):
+        return self._status.removed
+    def deleted(self):
+        return self._status.deleted
     @propertycache
     def _copies(self):
         p1copies = {}
@@ -1203,14 +1211,6 @@ 
         return self._copies[0]
     def p2copies(self):
         return self._copies[1]
-    def modified(self):
-        return self._status.modified
-    def added(self):
-        return self._status.added
-    def removed(self):
-        return self._status.removed
-    def deleted(self):
-        return self._status.deleted
     def branch(self):
         return encoding.tolocal(self._extra['branch'])
     def closesbranch(self):