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

login
register
mail settings
Submitter phabricator
Date Oct. 10, 2019, 2:10 p.m.
Message ID <9f5bc17d90f114767294a62be03eb710@localhost.localdomain>
Download mbox | patch
Permalink /patch/42186/
State Not Applicable
Headers show

Comments

phabricator - Oct. 10, 2019, 2:10 p.m.
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




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

Patch

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