darcs

Issue 630 feature: darcs2 should report when it is trying to connect

Title feature: darcs2 should report when it is trying to connect
Priority feature Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, markstos, riffraff, thorkilnaur, tommy
Assigned To
Topics UI

Created on 2008-01-31.10:03:51 by riffraff, last changed 2009-08-27.14:08:34 by admin.

Messages
msg2963 (view) Author: riffraff Date: 2008-01-31.10:03:49
the new reporting facility is nice,. but there is one event that is not reported:
<pre>
rff@ut:~/darcs$ darcs get http://fooa.hup

darcs failed:  Not a repository: http://fooa.hup (Failed to download URL
http://fooa.hup/_darcs/inventory: couldn't resolve host name)
</pre>
If the connection/name server is down or very slow darcs will hang indefinitely
before giving the error message/progress report. 
Something like "Tryng to connect.." would be nice, i.e.
<pre>
rff@ut:~/darcs$ darcs get http://fooa.hup
Trying to connect to fooa.hup..
darcs failed:  Not a repository: http://fooa.hup (Failed to download URL
http://fooa.hup/_darcs/inventory: couldn't resolve host name)
</pre>
msg3062 (view) Author: markstos Date: 2008-02-03.01:43:52
As a second user opinion, I would fine with resolving this as "wont-fix". 

First, the test URL given returned an immediate and useful failure message for
me with darcs 2. 

Second, there is a "--debug-verbose" flag in Darcs2, which provides more detail
about what's going on. 

Third, by referencing the manual:
http://www.darcs.net/manual/node5.html#SECTION00520000000000000000

You can turn on the verbose mode for "wget", when then gives what I think is
exactly the kind of feedback you are hoping for:

DARCS_GET_HTTP='wget --verbose -O -' darcs get  http://fooa.hup
--20:36:25--  http://fooa.hup/_darcs/prefs/motd
           => `-'
Resolving fooa.hup... failed: Name or service not known.
--20:36:27--  http://fooa.hup/_darcs/format
           => `-'
Resolving fooa.hup... failed: Name or service not known.
--20:36:28--  http://fooa.hup/.git/darcs-format
           => `-'
Resolving fooa.hup... failed: Name or service not known.
--20:36:30--  http://fooa.hup/_darcs/inventory
           => `-'
Resolving fooa.hup... failed: Name or service not known.
--20:36:31--  http://fooa.hup/_darcs/hashed_inventory
           => `-'
Resolving fooa.hup... failed: Name or service not known.
--20:36:31--  http://fooa.hup/_darcs/format
           => `-'
Resolving fooa.hup... failed: Name or service not known.
--20:36:31--  http://fooa.hup/.git/darcs-format
           => `-'
Resolving fooa.hup... failed: Name or service not known.

darcs failed:  Not a repository: http://fooa.hup ((wget --verbose -O -) failed
to fetch: http://fooa.hup/_darcs/inventory)

#########

And then, if you want that behavior all the time, you can set it as a default in
your shell environment, and not have to remember the syntax anymore. 

   Mark
msg3087 (view) Author: droundy Date: 2008-02-04.01:42:12
I believe this is actually fixed.  Having used my laptop over wireless this
weekend, I have abundant data that when it takes ages to connect, I now get a
progress message.
History
Date User Action Args
2008-01-31 10:03:51riffraffcreate
2008-02-03 01:43:53markstossetstatus: unread -> deferred
nosy: + markstos
messages: + msg3062
title: darcs2 should report when it is trying to connect -> feature: darcs2 should report when it is trying to connect
2008-02-04 01:42:13droundysetstatus: deferred -> resolved-in-unstable
nosy: droundy, tommy, beschmi, kowey, markstos, riffraff
messages: + msg3087
2008-09-04 21:32:15adminsetstatus: resolved-in-unstable -> resolved
nosy: + dagit
2009-08-06 17:52:49adminsetnosy: + jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, simon, thorkilnaur, - droundy, riffraff
2009-08-06 20:56:02adminsetnosy: - beschmi
2009-08-10 22:12:37adminsetnosy: + riffraff, - darcs-devel, zooko, jast, Serware, mornfall
2009-08-11 00:05:42adminsetnosy: - dagit
2009-08-25 18:04:16adminsetnosy: + darcs-devel, - simon
2009-08-27 14:08:34adminsetnosy: tommy, kowey, markstos, darcs-devel, thorkilnaur, riffraff, dmitry.kurochkin