commitablectx: move _flagfunc from workingctx
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 14 Aug 2013 15:30:17 -0500
changeset 19670 6ac735fbea50
parent 19669 8120ea4b87f5
child 19671 367e95bba6e8
commitablectx: move _flagfunc from workingctx
mercurial/context.py
--- 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"""