Show More
@@ -338,19 +338,7 b' def checkheads(repo, remote, outgoing, r' | |||
|
338 | 338 | |
|
339 | 339 | def visibleheads(repo): |
|
340 | 340 | """return the set of visible head of this repo""" |
|
341 | # XXX we want a cache on this | |
|
342 | sroots = repo._phasecache.phaseroots[phases.secret] | |
|
343 | if sroots or repo.obsstore: | |
|
344 | # XXX very slow revset. storing heads or secret "boundary" | |
|
345 | # would help. | |
|
346 | revset = repo.set('heads(not (%ln:: + extinct()))', sroots) | |
|
347 | ||
|
348 | vheads = [ctx.node() for ctx in revset] | |
|
349 | if not vheads: | |
|
350 | vheads.append(nullid) | |
|
351 | else: | |
|
352 | vheads = repo.heads() | |
|
353 | return vheads | |
|
341 | return repo.filtered('unserved').heads() | |
|
354 | 342 | |
|
355 | 343 | |
|
356 | 344 | def visiblebranchmap(repo): |
General Comments 0
You need to be logged in to leave comments.
Login now