diff -r b75a04502ced -r c697b70f295f mercurial/localrepo.py --- a/mercurial/localrepo.py Wed Jan 22 15:43:21 2014 -0600 +++ b/mercurial/localrepo.py Thu Feb 06 01:55:09 2014 +0100 @@ -1005,6 +1005,7 @@ l = lockmod.lock(vfs, lockname, int(self.ui.config("ui", "timeout", "600")), releasefn, desc=desc) + self.ui.warn(_("got lock after %s seconds\n") % l.delay) if acquirefn: acquirefn() return l