changeset 19670:6ac735fbea50

commitablectx: move _flagfunc from workingctx
author Sean Farley <sean.michael.farley@gmail.com>
date Wed, 14 Aug 2013 15:30:17 -0500
parents 8120ea4b87f5
children 367e95bba6e8
files mercurial/context.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Wed Aug 14 15:29:48 2013 -0500
+++ b/mercurial/context.py	Wed Aug 14 15:30:17 2013 -0500
@@ -897,6 +897,10 @@
 
         return func
 
+    @propertycache
+    def _flagfunc(self):
+        return self._repo.dirstate.flagfunc(self._buildflagfunc)
+
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
     the current working directory convenient.
@@ -911,10 +915,6 @@
         super(workingctx, self).__init__(repo, text, user, date, extra, changes)
 
     @propertycache
-    def _flagfunc(self):
-        return self._repo.dirstate.flagfunc(self._buildflagfunc)
-
-    @propertycache
     def _manifest(self):
         """generate a manifest corresponding to the working directory"""