Show More
@@ -2247,17 +2247,24 b' def perfbranchmapload(ui, repo, filter=b' | |||
|
2247 | 2247 | ui.status(b'%s - %s\n' |
|
2248 | 2248 | % (filtername, util.bytecount(st.st_size))) |
|
2249 | 2249 | return |
|
2250 | if filter: | |
|
2250 | if not filter: | |
|
2251 | filter = None | |
|
2252 | subsettable = getbranchmapsubsettable() | |
|
2253 | if filter is None: | |
|
2254 | repo = repo.unfiltered() | |
|
2255 | else: | |
|
2251 | 2256 | repo = repoview.repoview(repo, filter) |
|
2252 | else: | |
|
2253 | repo = repo.unfiltered() | |
|
2254 | 2257 | |
|
2255 | 2258 | repo.branchmap() # make sure we have a relevant, up to date branchmap |
|
2256 | 2259 | |
|
2260 | currentfilter = filter | |
|
2257 | 2261 | # try once without timer, the filter may not be cached |
|
2258 |
|
|
|
2259 | raise error.Abort(b'No branchmap cached for %s repo' | |
|
2260 | % (filter or b'unfiltered')) | |
|
2262 | while branchmap.read(repo) is None: | |
|
2263 | currentfilter = subsettable.get(currentfilter) | |
|
2264 | if currentfilter is None: | |
|
2265 | raise error.Abort(b'No branchmap cached for %s repo' | |
|
2266 | % (filter or b'unfiltered')) | |
|
2267 | repo = repo.filtered(currentfilter) | |
|
2261 | 2268 | timer, fm = gettimer(ui, opts) |
|
2262 | 2269 | def setup(): |
|
2263 | 2270 | if clearrevlogs: |
General Comments 0
You need to be logged in to leave comments.
Login now