Mercurial > public > mercurial-scm > hg
comparison mercurial/branchmap.py @ 49300:227124098e14
py3: use `x.hex()` instead of `pycompat.sysstr(node.hex(x))`
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Tue, 31 May 2022 03:06:05 +0200 |
parents | f923bdd7477d |
children | 9d3721552b6c |
comparison
equal
deleted
inserted
replaced
49299:4554e2e965e2 | 49300:227124098e14 |
---|---|
157 cache.write(repo) | 157 cache.write(repo) |
158 | 158 |
159 | 159 |
160 def _unknownnode(node): | 160 def _unknownnode(node): |
161 """raises ValueError when branchcache found a node which does not exists""" | 161 """raises ValueError when branchcache found a node which does not exists""" |
162 raise ValueError('node %s does not exist' % pycompat.sysstr(hex(node))) | 162 raise ValueError('node %s does not exist' % node.hex()) |
163 | 163 |
164 | 164 |
165 def _branchcachedesc(repo): | 165 def _branchcachedesc(repo): |
166 if repo.filtername is not None: | 166 if repo.filtername is not None: |
167 return b'branch cache (%s)' % repo.filtername | 167 return b'branch cache (%s)' % repo.filtername |