I'd just like to chime in here.

vnix$ darcs pull --dry
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': ^C
Error in subprocess: Interrupt
Error in subprocess: Interrupt
withSignalsHandled: Interrupted!
Exception thrown by an atexit registered action:
exception :: SignalHandler.SignalException
Exception thrown by an atexit registered action:
exception :: SignalHandler.SignalException

vnix$ strace darcs pull --dry 2>/tmp/darcs.strace
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Pulling from "[EMAIL PROTECTED]:repo/darcs/whatever"...
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
Enter passphrase for key '/h/c/ling/reriksso/.ssh/id_dsa': 
No remote changes to pull in!

vnix$ darcs --version
1.0.9rc1 (release candidate 1)

vnix$ uname -a
Linux angarak 2.6.18-5-686 #1 SMP Mon Dec 24 16:41:07 UTC 2007 i686
GNU/Linux

vnix$ cat /etc/debian_version 
4.0

Inspection of the strace file reveals that darcs spawns a good number of
ssh and scp processes in order to get the list of available patches and
then copy them.  The first few invocations are apparently even just to
figure out which version of SSH is in use.  It would definitely be nice
if it could open a single remote shell and then chat with that as long
as it wants to, but I don't know how hard that would be to implement.

The workaround, of course, for ssh, is to use ssh-add:

vnix$ ssh-add
Could not open a connection to your authentication agent.

vnix$ eval `ssh-agent` 
Agent pid 28621

vnix$ ssh-add
Enter passphrase for /h/c/ling/reriksso/.ssh/id_dsa: 
Identity added: /h/c/ling/reriksso/.ssh/id_dsa
(/h/c/ling/reriksso/.ssh/id_dsa)

vnix$ darcs pull --dry
Pulling from "[EMAIL PROTECTED]:repo/darcs/whatever"...
No remote changes to pull in!

I think this properly belongs upstream, as it is clearly a fairly
intimate detail of darcs, and not a packaging problem in Debian. 
(Perhaps some sort of wrapper could be put in place by Debian as a quick
remedy, but the real problem is upstream.)

/* era */

-- 
If this were a real .signature, it would suck less.  Well, maybe not.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to