mercurial/setdiscovery.py
changeset 46300 f17b6e40a775
parent 46299 397e39ad0174
child 46301 9689d3f3f8c5
equal deleted inserted replaced
46299:397e39ad0174 46300:f17b6e40a775
   288     remote,
   288     remote,
   289     initialsamplesize=100,
   289     initialsamplesize=100,
   290     fullsamplesize=200,
   290     fullsamplesize=200,
   291     abortwhenunrelated=True,
   291     abortwhenunrelated=True,
   292     ancestorsof=None,
   292     ancestorsof=None,
   293     samplegrowth=1.05,
       
   294     audit=None,
   293     audit=None,
   295 ):
   294 ):
   296     """Return a tuple (common, anyincoming, remoteheads) used to identify
   295     """Return a tuple (common, anyincoming, remoteheads) used to identify
   297     missing nodes from or in remote.
   296     missing nodes from or in remote.
   298 
   297 
   299     The audit argument is an optional dictionnary that a caller can pass. it
   298     The audit argument is an optional dictionnary that a caller can pass. it
   300     will be updated with extra data about the discovery, this is useful for
   299     will be updated with extra data about the discovery, this is useful for
   301     debug.
   300     debug.
   302     """
   301     """
       
   302 
       
   303     samplegrowth = float(ui.config(b'devel', b'discovery.grow-sample.rate'))
       
   304 
   303     start = util.timer()
   305     start = util.timer()
   304 
   306 
   305     roundtrips = 0
   307     roundtrips = 0
   306     cl = local.changelog
   308     cl = local.changelog
   307     clnode = cl.node
   309     clnode = cl.node