D5996: committablectx: move status-related methods closer together
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=14232 REVISION DETAIL https://phab.mercurial-scm.org/D5996 AFFECTED FILES mercurial/context.py CHANGE DETAILS 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): To: martinvonz, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D5996: committablectx: move status-related methods closer together
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY The modified()/added()/removed()/deleted() clearly belong very close to status(). I separated them in committablectx by the new p[12]copies() methods. This brings the close again. Sorry about the churn. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D5996 AFFECTED FILES mercurial/context.py CHANGE DETAILS diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -1181,6 +1181,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 = {} @@ -1201,14 +1209,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): To: martinvonz, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel