changeset 36319:c303eda316be

lock: delay is numeric, use %d for formatting Differential Revision: https://phab.mercurial-scm.org/D2347
author Augie Fackler <augie@google.com>
date Sun, 18 Feb 2018 15:38:29 -0500
parents 3f67c56a5fd7
children 9d12416a1593
files mercurial/lock.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/lock.py	Sun Feb 18 15:23:26 2018 -0500
+++ b/mercurial/lock.py	Sun Feb 18 15:38:29 2018 -0500
@@ -84,9 +84,9 @@
     l.delay = delay
     if l.delay:
         if 0 <= warningidx <= l.delay:
-            ui.warn(_("got lock after %s seconds\n") % l.delay)
+            ui.warn(_("got lock after %d seconds\n") % l.delay)
         else:
-            ui.debug("got lock after %s seconds\n" % l.delay)
+            ui.debug("got lock after %d seconds\n" % l.delay)
     if l.acquirefn:
         l.acquirefn()
     return l