##// END OF EJS Templates
delta-find: gather the condition to blindly use a full snapshot together...
marmoute -
r51547:bfb64040 stable
parent child Browse files
Show More
@@ -1296,18 +1296,17 b' class deltacomputer:'
1296 dbg['p1-chain-len'] = p1_chain_len
1296 dbg['p1-chain-len'] = p1_chain_len
1297 dbg['p2-chain-len'] = p2_chain_len
1297 dbg['p2-chain-len'] = p2_chain_len
1298
1298
1299 if not revinfo.textlen:
1299 # 1) if the revision is empty, no amount of delta can beat it
1300 #
1301 # 2) no delta for flag processor revision (see "candelta" for why)
1302 # not calling candelta since only one revision needs test, also to
1303 # avoid overhead fetching flags again.
1304 if not revinfo.textlen or revinfo.flags & REVIDX_RAWTEXT_CHANGING_FLAGS:
1300 return self._fullsnapshotinfo(fh, revinfo, target_rev)
1305 return self._fullsnapshotinfo(fh, revinfo, target_rev)
1301
1306
1302 if excluded_bases is None:
1307 if excluded_bases is None:
1303 excluded_bases = set()
1308 excluded_bases = set()
1304
1309
1305 # no delta for flag processor revision (see "candelta" for why)
1306 # not calling candelta since only one revision needs test, also to
1307 # avoid overhead fetching flags again.
1308 if revinfo.flags & REVIDX_RAWTEXT_CHANGING_FLAGS:
1309 return self._fullsnapshotinfo(fh, revinfo, target_rev)
1310
1311 # count the number of different delta we tried (for debug purpose)
1310 # count the number of different delta we tried (for debug purpose)
1312 dbg_try_count = 0
1311 dbg_try_count = 0
1313 # count the number of "search round" we did. (for debug purpose)
1312 # count the number of "search round" we did. (for debug purpose)
General Comments 0
You need to be logged in to leave comments. Login now