##// END OF EJS Templates
delta-find: move the `gather_debug` logic in a property...
marmoute -
r51541:5d210ff4 stable
parent child Browse files
Show More
@@ -1091,6 +1091,10 b' class deltacomputer:'
1091 1091 self._debug_info = debug_info
1092 1092 self._snapshot_cache = SnapshotCache()
1093 1093
1094 @property
1095 def _gather_debug(self):
1096 return self._write_debug is not None or self._debug_info is not None
1097
1094 1098 def buildtext(self, revinfo, fh):
1095 1099 """Builds a fulltext version of a revision
1096 1100
@@ -1265,10 +1269,8 b' class deltacomputer:'
1265 1269 if revinfo.flags & REVIDX_RAWTEXT_CHANGING_FLAGS:
1266 1270 return self._fullsnapshotinfo(fh, revinfo, target_rev)
1267 1271
1268 gather_debug = (
1269 self._write_debug is not None or self._debug_info is not None
1270 )
1271 1272 debug_search = self._write_debug is not None and self._debug_search
1273 gather_debug = self._gather_debug
1272 1274
1273 1275 if gather_debug:
1274 1276 start = util.timer()
General Comments 0
You need to be logged in to leave comments. Login now