D6042: py3: convert filtername to str if it's None

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sun Mar 3 16:07:09 EST 2019


pulkit updated this revision to Diff 14321.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6042?vs=14320&id=14321

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

AFFECTED FILES
  mercurial/branchmap.py

CHANGE DETAILS

diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py
--- a/mercurial/branchmap.py
+++ b/mercurial/branchmap.py
@@ -360,7 +360,7 @@
 
         duration = util.timer() - starttime
         repo.ui.log('branchcache', 'updated %s branch cache in %.4f seconds\n',
-                    repo.filtername, duration)
+                    repo.filtername or b'None', duration)
 
         self.write(repo)
 



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


More information about the Mercurial-devel mailing list