D7039: py3-discovery: using plain str in stats dict

gracinet (Georges Racinet) phabricator at mercurial-scm.org
Thu Oct 10 10:10:52 EDT 2019


Closed by commit rHG3c6976b1f693: py3-discovery: using plain str in stats dict (authored by gracinet).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7039?vs=17042&id=17043

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

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

AFFECTED FILES
  mercurial/setdiscovery.py

CHANGE DETAILS

diff --git a/mercurial/setdiscovery.py b/mercurial/setdiscovery.py
--- a/mercurial/setdiscovery.py
+++ b/mercurial/setdiscovery.py
@@ -176,7 +176,7 @@
 
     def stats(self):
         return {
-            b'undecided': len(self.undecided),
+            'undecided': len(self.undecided),
         }
 
     def commonheads(self):
@@ -441,7 +441,7 @@
         stats = disco.stats()
         ui.debug(
             b"query %i; still undecided: %i, sample size is: %i\n"
-            % (roundtrips, stats[b'undecided'], len(sample))
+            % (roundtrips, stats['undecided'], len(sample))
         )
 
         # indices between sample and externalized version must match



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


More information about the Mercurial-devel mailing list