mercurial/setdiscovery.py
changeset 23747 f82173a90c2c
parent 23746 4ef2f2fa8b8b
child 23806 d6cbbe3baef0
--- a/mercurial/setdiscovery.py	Tue Jan 06 16:30:37 2015 -0800
+++ b/mercurial/setdiscovery.py	Tue Jan 06 16:30:52 2015 -0800
@@ -197,13 +197,11 @@
         if not undecided:
             break
 
-        if full:
-            ui.note(_("sampling from both directions\n"))
-            sample = _takefullsample(dag, undecided, size=fullsamplesize)
-            targetsize = fullsamplesize
-        elif common.hasbases():
-            # use cheapish initial sample
-            ui.debug("taking initial sample\n")
+        if full or common.hasbases():
+            if full:
+                ui.note(_("sampling from both directions\n"))
+            else:
+                ui.debug("taking initial sample\n")
             sample = _takefullsample(dag, undecided, size=fullsamplesize)
             targetsize = fullsamplesize
         else: