[darcs-devel] [issue1949] poor error output on 'darcs get ssh://<host+path>'

Rogan Creswick bugs at darcs.net
Mon Sep 6 19:46:35 UTC 2010


New submission from Rogan Creswick <creswick at gmail.com>:

When running darcs (2.4.4) get to clone a repo over ssh, using a
ssh:// style url, eg:

{{{
darcs get ssh://localhost/some/darcs/repo
}}}

darcs produces this output, and blocks indefinitely:

{{{
darcs: bug at src/URL.hs:246 compiled Sep  6 2010 12:00:56
Another possible bug in URL.waitNextUrl:  curl_multi_perform() - no
running handles
See http://wiki.darcs.net/BugTracker/Reporting for help on bug reporting.
}}}

re-writing the url to:

{{{
darcs get username at localhost:some/darcs/repo
}}}

works fine.

The output (and blocking behavior) is very misleading, particularly
given the use of ssh:// style urls with git.  If darcs won't support
that style of url (and hey, maybe there's a good reason not to) then
it should at least detect the presence of such a url early and exit.

I also believe that darcs should exit if it enters the 'bug report'
code that was triggered here.  This could cause some very difficult to
diagnose bugs in a non-interactive environment.

----------
messages: 12490
nosy: creswick, dmitry.kurochkin
status: unknown
title: poor error output on 'darcs get ssh://<host+path>'

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1949>
__________________________________


More information about the darcs-devel mailing list