Show More
@@ -1091,6 +1091,10 b' class deltacomputer:' | |||||
1091 | self._debug_info = debug_info |
|
1091 | self._debug_info = debug_info | |
1092 | self._snapshot_cache = SnapshotCache() |
|
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 | def buildtext(self, revinfo, fh): |
|
1098 | def buildtext(self, revinfo, fh): | |
1095 | """Builds a fulltext version of a revision |
|
1099 | """Builds a fulltext version of a revision | |
1096 |
|
1100 | |||
@@ -1265,10 +1269,8 b' class deltacomputer:' | |||||
1265 | if revinfo.flags & REVIDX_RAWTEXT_CHANGING_FLAGS: |
|
1269 | if revinfo.flags & REVIDX_RAWTEXT_CHANGING_FLAGS: | |
1266 | return self._fullsnapshotinfo(fh, revinfo, target_rev) |
|
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 | debug_search = self._write_debug is not None and self._debug_search |
|
1272 | debug_search = self._write_debug is not None and self._debug_search | |
|
1273 | gather_debug = self._gather_debug | |||
1272 |
|
1274 | |||
1273 | if gather_debug: |
|
1275 | if gather_debug: | |
1274 | start = util.timer() |
|
1276 | start = util.timer() |
General Comments 0
You need to be logged in to leave comments.
Login now