mercurial/setdiscovery.py
changeset 39172 8973fc62bfff
parent 39171 abce899c985f
child 39173 56279660d264
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)