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.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG38de3300414f: py3: convert filtername to str if it's None
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
+ filtername = repo.filtername
+ if filtername is None:
+ filtername = 'None'repo.ui.log('branchcache', 'updated %s branch cache in %.4f seconds\n',
- repo.filtername, duration)
+ filtername, duration)
Perhaps, we can use %r instead. It's just logging, we wouldn't care the output
format. Or simply, repo.filtername or b'None'.