change the default timeout to 600 seconds
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 21 Feb 2006 23:50:53 +0100
changeset 1788 750b9cd83965
parent 1787 e431344e604c
child 1789 d5248726d22f
change the default timeout to 600 seconds
doc/hgrc.5.txt
mercurial/localrepo.py
--- 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 "