##// END OF EJS Templates
revlogdeltas: move special cases around raw revisions in finddeltainfo...
Boris Feld -
r39368:6f4b8f60 default
parent child Browse files
Show More
@@ -1965,13 +1965,7 b' class revlog(object):'
1965 1965
1966 1966 revinfo = _revisioninfo(node, p1, p2, btext, textlen, cachedelta, flags)
1967 1967
1968 # no delta for flag processor revision (see "candelta" for why)
1969 # not calling candelta since only one revision needs test, also to
1970 # avoid overhead fetching flags again.
1971 if flags & REVIDX_RAWTEXT_CHANGING_FLAGS:
1972 deltainfo = None
1973 else:
1974 deltainfo = deltacomputer.finddeltainfo(revinfo, fh)
1968 deltainfo = deltacomputer.finddeltainfo(revinfo, fh)
1975 1969
1976 1970 if deltainfo is not None:
1977 1971 base = deltainfo.base
@@ -703,6 +703,12 b' class deltacomputer(object):'
703 703 if not revinfo.textlen:
704 704 return None # empty file do not need delta
705 705
706 # no delta for flag processor revision (see "candelta" for why)
707 # not calling candelta since only one revision needs test, also to
708 # avoid overhead fetching flags again.
709 if revinfo.flags & REVIDX_RAWTEXT_CHANGING_FLAGS:
710 return None
711
706 712 cachedelta = revinfo.cachedelta
707 713 p1 = revinfo.p1
708 714 p2 = revinfo.p2
General Comments 0
You need to be logged in to leave comments. Login now