Patchwork D6430: rust-discovery: using from Python code

login
register
mail settings
Submitter phabricator
Date Aug. 14, 2019, 8:17 p.m.
Message ID <f8e715479e4f9124cae57315853c4ca6@localhost.localdomain>
Download mbox | patch
Permalink /patch/41266/
State Not Applicable
Headers show

Comments

phabricator - Aug. 14, 2019, 8:17 p.m.
Closed by commit rHG4d20b1fe8a72: rust-discovery: using from Python code (authored by gracinet).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6430?vs=15487&id=16192

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6430/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6430

AFFECTED FILES
  mercurial/setdiscovery.py

CHANGE DETAILS




To: gracinet, #hg-reviewers
Cc: durin42, pulkit, marmoute, martinvonz, mercurial-devel

Patch

diff --git a/mercurial/setdiscovery.py b/mercurial/setdiscovery.py
--- a/mercurial/setdiscovery.py
+++ b/mercurial/setdiscovery.py
@@ -52,6 +52,7 @@ 
 )
 from . import (
     error,
+    policy,
     util,
 )
 
@@ -269,6 +270,10 @@ 
                 sample.update(takefrom[:more])
         return sample
 
+partialdiscovery = policy.importrust('discovery',
+                                     member='PartialDiscovery',
+                                     default=partialdiscovery)
+
 def findcommonheads(ui, local, remote,
                     initialsamplesize=100,
                     fullsamplesize=200,