D2069: revlog: resolve lfs rawtext to vanilla rawtext before applying delta

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Tue Mar 6 13:53:57 EST 2018


indygreg accepted this revision.
indygreg added a comment.
This revision is now accepted and ready to land.


  This change is a bit difficult to reason about. But I think it is fine.
  
  Essentially, we're ensuring that the delta stored in the revlog is applied on top of the fulltext after flag transformation rather than before. In the common case where we have no flag processors, this doesn't matter. In the case of LFS, it ensures LFS content resolution is performed first so we can delta against that.
  
  On the addrevision side, we're now taking the size of the flag resolved content rather than the raw content. In the common case of no flag processors, the new behavior is identical. In the case of LFS, we compute the size of the LFS resolved data rather than the pointer record.

REPOSITORY
  rHG Mercurial

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

To: quark, indygreg, #hg-reviewers, ryanmce
Cc: mercurial-devel


More information about the Mercurial-devel mailing list