changeset 1788:750b9cd83965

change the default timeout to 600 seconds
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 21 Feb 2006 23:50:53 +0100
parents e431344e604c
children d5248726d22f
files doc/hgrc.5.txt mercurial/localrepo.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/doc/hgrc.5.txt	Tue Feb 21 23:21:15 2006 +0100
+++ b/doc/hgrc.5.txt	Tue Feb 21 23:50:53 2006 +0100
@@ -249,7 +249,7 @@
     command to use for SSH connections. Default is 'ssh'.
   timeout;;
     The timeout used when a lock is held (in seconds), a negative value
-    means no timeout. Default is 1024.
+    means no timeout. Default is 600.
   username;;
     The committer of a changeset created when running "commit".
     Typically a person's name and email address, e.g. "Fred Widget
--- a/mercurial/localrepo.py	Tue Feb 21 23:21:15 2006 +0100
+++ b/mercurial/localrepo.py	Tue Feb 21 23:50:53 2006 +0100
@@ -262,9 +262,9 @@
                 raise inst
             self.ui.warn(_("waiting for lock held by %s\n") % inst.args[0])
             try:
-                # default to 1024 seconds timeout
+                # default to 600 seconds timeout
                 l = lock.lock(self.join(lockname),
-                              int(self.ui.config("ui", "timeout") or 1024),
+                              int(self.ui.config("ui", "timeout") or 600),
                               releasefn)
             except lock.LockHeld, inst:
                 raise util.Abort(_("timeout while waiting for "