# HG changeset patch # User Sean Farley # Date 1376512217 18000 # Node ID 6ac735fbea502624e03cd4c585a99b6a3ec71958 # Parent 8120ea4b87f5e0be26924f99f0d14562b1e3fa15 commitablectx: move _flagfunc from workingctx diff -r 8120ea4b87f5 -r 6ac735fbea50 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"""