Mercurial > hg
comparison mercurial/branchmap.py @ 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 | 8ad46ac6728e |
children | 624d6683c705 |
comparison
equal
deleted
inserted
replaced
41838:dcbb1b4dc93a | 41839:38de3300414f |
---|---|
358 self.tiprev = tiprev | 358 self.tiprev = tiprev |
359 self.filteredhash = scmutil.filteredhash(repo, self.tiprev) | 359 self.filteredhash = scmutil.filteredhash(repo, self.tiprev) |
360 | 360 |
361 duration = util.timer() - starttime | 361 duration = util.timer() - starttime |
362 repo.ui.log('branchcache', 'updated %s branch cache in %.4f seconds\n', | 362 repo.ui.log('branchcache', 'updated %s branch cache in %.4f seconds\n', |
363 repo.filtername, duration) | 363 repo.filtername or b'None', duration) |
364 | 364 |
365 self.write(repo) | 365 self.write(repo) |
366 | 366 |
367 | 367 |
368 class remotebranchcache(branchcache): | 368 class remotebranchcache(branchcache): |