# HG changeset patch # User Pulkit Goyal # Date 2019-03-01 23:54:35 # Node ID 38de3300414fb7412418ba7e7be62320d30a6524 # Parent dcbb1b4dc93a9105b559502826b87f69e9f8c32c 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 diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py --- a/mercurial/branchmap.py +++ b/mercurial/branchmap.py @@ -360,7 +360,7 @@ class branchcache(dict): 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)