##// END OF EJS Templates
clfilter: use filtering in `visibleheads`...
Pierre-Yves David -
r18104:a2cebd3e default
parent child Browse files
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):
@@ -91,7 +91,7 b' check that mercurial refuse to push'
91 91 $ hg push ../other
92 92 pushing to ../other
93 93 searching for changes
94 abort: push includes divergent changeset: 82623d38b9ba!
94 abort: push includes divergent changeset: 392fd25390da!
95 95 [255]
96 96
97 97 $ cd ..
@@ -176,6 +176,7 b" And that we can't push bumped changeset"
176 176 $ hg push ../tmpa -r 0 --force #(make repo related)
177 177 pushing to ../tmpa
178 178 searching for changes
179 warning: repository is unrelated
179 180 adding changesets
180 181 adding manifests
181 182 adding file changes
General Comments 0
You need to be logged in to leave comments. Login now