Mercurial > public > mercurial-scm > hg
comparison hgext/fastannotate/context.py @ 50915:d97227f42558
fastannotate: use sysstr to check for attribute presence
We do not need bytes here.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 31 Aug 2023 01:21:57 +0200 |
parents | 1a242d4d2ac4 |
children | d718eddf01d9 |
comparison
equal
deleted
inserted
replaced
50914:1a242d4d2ac4 | 50915:d97227f42558 |
---|---|
322 self.ui.debug( | 322 self.ui.debug( |
323 b'fastannotate: %s: using fast path ' | 323 b'fastannotate: %s: using fast path ' |
324 b'(resolved fctx: %s)\n' | 324 b'(resolved fctx: %s)\n' |
325 % ( | 325 % ( |
326 self.path, | 326 self.path, |
327 stringutil.pprint(util.safehasattr(revfctx, b'node')), | 327 stringutil.pprint(util.safehasattr(revfctx, 'node')), |
328 ) | 328 ) |
329 ) | 329 ) |
330 return self.annotatedirectly(revfctx, showpath, showlines) | 330 return self.annotatedirectly(revfctx, showpath, showlines) |
331 | 331 |
332 # resolve master | 332 # resolve master |