Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 39359:6f4b8f607a31
revlogdeltas: move special cases around raw revisions in finddeltainfo
The method already contains logic for no-diff cases. Having everything in the
same place is more consistent and unlocks other code improvements.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 16 Aug 2018 04:20:34 +0200 |
parents | 655b5b465953 |
children | 5d343a24bff5 |
line wrap: on
line diff
--- a/mercurial/revlog.py Wed Aug 29 09:41:04 2018 -0700 +++ b/mercurial/revlog.py Thu Aug 16 04:20:34 2018 +0200 @@ -1965,13 +1965,7 @@ revinfo = _revisioninfo(node, p1, p2, btext, textlen, cachedelta, flags) - # no delta for flag processor revision (see "candelta" for why) - # not calling candelta since only one revision needs test, also to - # avoid overhead fetching flags again. - if flags & REVIDX_RAWTEXT_CHANGING_FLAGS: - deltainfo = None - else: - deltainfo = deltacomputer.finddeltainfo(revinfo, fh) + deltainfo = deltacomputer.finddeltainfo(revinfo, fh) if deltainfo is not None: base = deltainfo.base