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

login
register
mail settings
Submitter phabricator
Date March 4, 2019, 2:08 p.m.
Message ID <de95be355c3aa5ff1f54a20cce7c121d@localhost.localdomain>
Download mbox | patch
Permalink /patch/39043/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2019, 2:08 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG38de3300414f: py3: convert filtername to str if it&#039;s None (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  mercurial/branchmap.py

CHANGE DETAILS




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

Patch

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)