changeset 41839:38de3300414f

py3: convert filtername to str if it's None I have not called pycompat.bytestr() and rather converted the value there because I am starting to get concerned about the function call overhead of all this bytes to str or vice versa convert functions. Differential Revision: https://phab.mercurial-scm.org/D6042
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sat, 02 Mar 2019 05:24:35 +0530
parents dcbb1b4dc93a
children d6569f1e9b37
files mercurial/branchmap.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/branchmap.py	Sat Mar 02 13:28:17 2019 -0800
+++ b/mercurial/branchmap.py	Sat Mar 02 05:24:35 2019 +0530
@@ -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)