##// END OF EJS Templates
lock: use configint for 'ui.timeout' config...
Boris Feld -
r35208:d210723b default
parent child Browse files
Show More
@@ -304,7 +304,7 class journalstorage(object):
304 304 # default to 600 seconds timeout
305 305 l = lock.lock(
306 306 vfs, 'namejournal.lock',
307 int(self.ui.config("ui", "timeout")), desc=desc)
307 self.ui.configint("ui", "timeout"), desc=desc)
308 308 self.ui.warn(_("got lock after %s seconds\n") % l.delay)
309 309 self._lockref = weakref.ref(l)
310 310 return l
@@ -1611,7 +1611,7 class localrepository(object):
1611 1611 (desc, inst.locker))
1612 1612 # default to 600 seconds timeout
1613 1613 l = lockmod.lock(vfs, lockname,
1614 int(self.ui.config("ui", "timeout")),
1614 self.ui.configint("ui", "timeout"),
1615 1615 releasefn=releasefn, acquirefn=acquirefn,
1616 1616 desc=desc)
1617 1617 self.ui.warn(_("got lock after %s seconds\n") % l.delay)
General Comments 0
You need to be logged in to leave comments. Login now