# HG changeset patch # User Sean Farley # Date 2013-08-14 20:30:17 # Node ID 6ac735fbea502624e03cd4c585a99b6a3ec71958 # Parent 8120ea4b87f5e0be26924f99f0d14562b1e3fa15 commitablectx: move _flagfunc from workingctx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -897,6 +897,10 @@ class commitablectx(basectx): 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 @@ class workingctx(commitablectx): 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"""