D616: context: add overlayworkingcontext and overlayworkingfilectx

quark (Jun Wu) phabricator at mercurial-scm.org
Fri Sep 8 14:19:00 EDT 2017


quark added a comment.


  This is where I guess it might be implemented differently. Storing fctx in `overlayworkingctx._cache` may be possible. It allows us to have some fast path for LFS use-case (ex. skip reading `.data()` but reuse `.rawdata()`). It could also simplify read methods by proxying them to `getattr(_underlyingctx(path), methodname)`.
  
  That said, I'm fine with this being committed as is. I'll follow up later once we really need the LFS fast path.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D616

To: phillco, #hg-reviewers
Cc: quark, martinvonz, mercurial-devel


More information about the Mercurial-devel mailing list