diff -r 93aeebc90ff9 -r be384a2052aa mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Nov 05 12:10:38 2019 -0500 +++ b/mercurial/localrepo.py Tue Nov 05 08:42:42 2019 -0800 @@ -3199,7 +3199,7 @@ # When using the same lock to commit and strip, the phasecache is left # dirty after committing. Then when we strip, the repo is invalidated, # causing those changes to disappear. - if b'_phasecache' in vars(self): + if '_phasecache' in vars(self): self._phasecache.write() @unfilteredmethod