--- a/mercurial/scmutil.py Mon May 01 19:58:52 2017 +0900
+++ b/mercurial/scmutil.py Mon May 01 19:59:13 2017 +0900
@@ -151,10 +151,12 @@
# Mercurial-specific first, followed by built-in and library exceptions
except error.LockHeld as inst:
if inst.errno == errno.ETIMEDOUT:
- reason = _('timed out waiting for lock held by %s') % inst.locker
+ reason = _('timed out waiting for lock held by %r') % inst.locker
else:
- reason = _('lock held by %s') % inst.locker
+ reason = _('lock held by %r') % inst.locker
ui.warn(_("abort: %s: %s\n") % (inst.desc or inst.filename, reason))
+ if not inst.locker:
+ ui.warn(_("(lock might be very busy)\n"))
except error.LockUnavailable as inst:
ui.warn(_("abort: could not lock %s: %s\n") %
(inst.desc or inst.filename, inst.strerror))