comparison mercurial/setdiscovery.py @ 39172:8973fc62bfff

dagutil: remove heads() and localsubset from revlogdag.__init__ The previous commit removed the last consumer of this API. I'm not going to mark as API incompatible because I doubt anybody used this functionality (outside of possibly passing an argument to revlogdag.__init__). I intend to remove revlogdag later in this series and its API annotation will cover this one. Differential Revision: https://phab.mercurial-scm.org/D4320
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 17 Aug 2018 17:59:16 +0000
parents abce899c985f
children 56279660d264
comparison
equal deleted inserted replaced
39171:abce899c985f 39172:8973fc62bfff
150 if ancestorsof is not None: 150 if ancestorsof is not None:
151 ownheads = [clrev(n) for n in ancestorsof] 151 ownheads = [clrev(n) for n in ancestorsof]
152 else: 152 else:
153 ownheads = [rev for rev in cl.headrevs() if rev != nullrev] 153 ownheads = [rev for rev in cl.headrevs() if rev != nullrev]
154 154
155 dag = dagutil.revlogdag(cl, localsubset=ownheads) 155 dag = dagutil.revlogdag(cl)
156 156
157 # early exit if we know all the specified remote heads already 157 # early exit if we know all the specified remote heads already
158 ui.debug("query 1; heads\n") 158 ui.debug("query 1; heads\n")
159 roundtrips += 1 159 roundtrips += 1
160 sample = _limitsample(ownheads, initialsamplesize) 160 sample = _limitsample(ownheads, initialsamplesize)