mercurial/scmutil.py
branchstable
changeset 32088 0d892d820a51
parent 32041 38963a53ab0d
child 32111 1208b74841ff
child 33633 20bac46f7744
--- 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))