Mercurial > hg
comparison contrib/perf-utils/search-discovery-case @ 49271:87a3f43b9dc2
search-discovery-case: update documentation of a function
We return data, it is simpler when we know what these data means.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 03 Jun 2022 17:39:58 +0200 |
parents | a2bd6b23881d |
children |
comparison
equal
deleted
inserted
replaced
49269:395f28064826 | 49271:87a3f43b9dc2 |
---|---|
140 For now we are mostly interrested in case were we do multiple roundstrip | 140 For now we are mostly interrested in case were we do multiple roundstrip |
141 and where the boundary is somewhere in the middle of the undecided set. | 141 and where the boundary is somewhere in the middle of the undecided set. |
142 | 142 |
143 Ideally, we would make this configurable, but this is not a focus for now | 143 Ideally, we would make this configurable, but this is not a focus for now |
144 | 144 |
145 return None or (round-trip, undecided-common, undecided-missing) | 145 return None or ( |
146 round-trip, | |
147 undecided-common, | |
148 undecided-missing, | |
149 total-revs, | |
150 common-revs, | |
151 missing-revs, | |
152 ) | |
146 """ | 153 """ |
147 roundtrips = res["total-roundtrips"] | 154 roundtrips = res["total-roundtrips"] |
148 if roundtrips <= 1: | 155 if roundtrips <= 1: |
149 return None | 156 return None |
150 total_revs = res["nb-revs"] | 157 total_revs = res["nb-revs"] |