mercurial/scmutil.py
changeset 40167 c554dc0cc16e
parent 40088 1d09ba0d2ed3
child 40341 d916ed3ca951
equal deleted inserted replaced
40166:11727e38a920 40167:c554dc0cc16e
   169             raise
   169             raise
   170     # Global exception handling, alphabetically
   170     # Global exception handling, alphabetically
   171     # Mercurial-specific first, followed by built-in and library exceptions
   171     # Mercurial-specific first, followed by built-in and library exceptions
   172     except error.LockHeld as inst:
   172     except error.LockHeld as inst:
   173         if inst.errno == errno.ETIMEDOUT:
   173         if inst.errno == errno.ETIMEDOUT:
   174             reason = _('timed out waiting for lock held by %r') % inst.locker
   174             reason = _('timed out waiting for lock held by %r') % (
       
   175                 pycompat.bytestr(inst.locker))
   175         else:
   176         else:
   176             reason = _('lock held by %r') % inst.locker
   177             reason = _('lock held by %r') % inst.locker
   177         ui.error(_("abort: %s: %s\n") % (
   178         ui.error(_("abort: %s: %s\n") % (
   178             inst.desc or stringutil.forcebytestr(inst.filename), reason))
   179             inst.desc or stringutil.forcebytestr(inst.filename), reason))
   179         if not inst.locker:
   180         if not inst.locker: