##// END OF EJS Templates
memctx: always use cache for filectxfn...
Sean Farley -
r32781:448fc659 default
parent child Browse files
Show More
@@ -2106,13 +2106,13 b' class memctx(committablectx):'
2106 self.substate = {}
2106 self.substate = {}
2107
2107
2108 if isinstance(filectxfn, patch.filestore):
2108 if isinstance(filectxfn, patch.filestore):
2109 self._filectxfn = memfilefrompatch(filectxfn)
2109 filectxfn = memfilefrompatch(filectxfn)
2110 elif not callable(filectxfn):
2110 elif not callable(filectxfn):
2111 # if store is not callable, wrap it in a function
2111 # if store is not callable, wrap it in a function
2112 self._filectxfn = memfilefromctx(filectxfn)
2112 filectxfn = memfilefromctx(filectxfn)
2113 else:
2113
2114 # memoizing increases performance for e.g. vcs convert scenarios.
2114 # memoizing increases performance for e.g. vcs convert scenarios.
2115 self._filectxfn = makecachingfilectxfn(filectxfn)
2115 self._filectxfn = makecachingfilectxfn(filectxfn)
2116
2116
2117 if editor:
2117 if editor:
2118 self._text = editor(self._repo, self, [])
2118 self._text = editor(self._repo, self, [])
General Comments 0
You need to be logged in to leave comments. Login now