diff --git a/contrib/chg/README b/contrib/chg/README --- a/contrib/chg/README +++ b/contrib/chg/README @@ -29,4 +29,4 @@ The following variables are available fo * CHGDEBUG enables debug messages. * CHGSOCKNAME specifies the socket path of the background cmdserver. * CHGTIMEOUT specifies how many seconds chg will wait before giving up - connecting to a cmdserver. If it is 0, chg will wait forever. Default: 10 + connecting to a cmdserver. If it is 0, chg will wait forever. Default: 60 diff --git a/contrib/chg/chg.c b/contrib/chg/chg.c --- a/contrib/chg/chg.c +++ b/contrib/chg/chg.c @@ -250,7 +250,7 @@ static hgclient_t *retryconnectcmdserver debugmsg("try connect to %s repeatedly", opts->sockname); - unsigned int timeoutsec = 10; /* default: 10 seconds */ + unsigned int timeoutsec = 60; /* default: 60 seconds */ const char *timeoutenv = getenv("CHGTIMEOUT"); if (timeoutenv) sscanf(timeoutenv, "%u", &timeoutsec);