equal
deleted
inserted
replaced
50 nullid, |
50 nullid, |
51 nullrev, |
51 nullrev, |
52 ) |
52 ) |
53 from . import ( |
53 from . import ( |
54 error, |
54 error, |
|
55 policy, |
55 util, |
56 util, |
56 ) |
57 ) |
57 |
58 |
58 def _updatesample(revs, heads, sample, parentfn, quicksamplesize=0): |
59 def _updatesample(revs, heads, sample, parentfn, quicksamplesize=0): |
59 """update an existing sample to match the expected size |
60 """update an existing sample to match the expected size |
267 else: |
268 else: |
268 takefrom.sort() |
269 takefrom.sort() |
269 sample.update(takefrom[:more]) |
270 sample.update(takefrom[:more]) |
270 return sample |
271 return sample |
271 |
272 |
|
273 partialdiscovery = policy.importrust('discovery', |
|
274 member='PartialDiscovery', |
|
275 default=partialdiscovery) |
|
276 |
272 def findcommonheads(ui, local, remote, |
277 def findcommonheads(ui, local, remote, |
273 initialsamplesize=100, |
278 initialsamplesize=100, |
274 fullsamplesize=200, |
279 fullsamplesize=200, |
275 abortwhenunrelated=True, |
280 abortwhenunrelated=True, |
276 ancestorsof=None, |
281 ancestorsof=None, |