Mercurial > hg
comparison mercurial/lock.py @ 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 | 4b1c04082cdc |
children | c77c925987d7 |
comparison
equal
deleted
inserted
replaced
36318:3f67c56a5fd7 | 36319:c303eda316be |
---|---|
82 delay += 1 | 82 delay += 1 |
83 | 83 |
84 l.delay = delay | 84 l.delay = delay |
85 if l.delay: | 85 if l.delay: |
86 if 0 <= warningidx <= l.delay: | 86 if 0 <= warningidx <= l.delay: |
87 ui.warn(_("got lock after %s seconds\n") % l.delay) | 87 ui.warn(_("got lock after %d seconds\n") % l.delay) |
88 else: | 88 else: |
89 ui.debug("got lock after %s seconds\n" % l.delay) | 89 ui.debug("got lock after %d seconds\n" % l.delay) |
90 if l.acquirefn: | 90 if l.acquirefn: |
91 l.acquirefn() | 91 l.acquirefn() |
92 return l | 92 return l |
93 | 93 |
94 class lock(object): | 94 class lock(object): |