##// END OF EJS Templates
revlog: clarify the comment attached to delta reuse...
Boris Feld -
r39524:d629b6d2 default
parent child Browse files
Show More
@@ -621,10 +621,12 b' def _rawgroups(revlog, p1, p2, cachedelt'
621 curr = len(revlog)
621 curr = len(revlog)
622 prev = curr - 1
622 prev = curr - 1
623
623
624 # This condition is true most of the time when processing
624 # First we try to reuse a the delta contained in the bundle.
625 # changegroup data into a generaldelta repo. The only time it
625 # (or from the source revlog)
626 # isn't true is if this is the first revision in a delta chain
626 #
627 # or if ``format.generaldelta=true`` disabled ``lazydeltabase``.
627 # This logic only applies to general delta repositories and can be disabled
628 # through configuration. Disabling reuse of source delta is useful when
629 # we want to make sure we recomputed "optimal" deltas.
628 if cachedelta and gdelta and revlog._lazydeltabase:
630 if cachedelta and gdelta and revlog._lazydeltabase:
629 # Assume what we received from the server is a good choice
631 # Assume what we received from the server is a good choice
630 # build delta will reuse the cache
632 # build delta will reuse the cache
General Comments 0
You need to be logged in to leave comments. Login now