unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* psvn with svn+ssh protocol working copy
@ 2009-10-24 15:24 Seb
  2009-10-24 19:12 ` Pierre Lorenzon
  0 siblings, 1 reply; 2+ messages in thread
From: Seb @ 2009-10-24 15:24 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Although I can checkout, commit and do all operations I need from a
shell, I cannot update my working copy of a directory under SVN control
with svn+ssh in Emacs with psvn.  I get the message:

svn failed:
Network connection closed unexpectedly

in the minibuffer.  Checking the comments on psvn.el, I see that using
x11-ssh-askpass would help, so I installed Debian sid's ssh-askpass
package, and now I'm shown a graphical dialog to enter the passphrase.
This works fine, but requires typing the passphrase with every commit or
update.

The comment in psvn.el ($Id: psvn.el 35820 2009-02-11 21:35:14Z) from
GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.3) of
2009-10-23 on elegiac, modified by Debian, reads:

,-----[ psvn.el (lines: 1283 - 1292) ]
|                     ;; Communicate with the subprocess via pipes rather
|                     ;; than via a pseudoterminal, so that if the svn+ssh
|                     ;; scheme is being used, SSH will not ask for a
|                     ;; passphrase via stdio; psvn.el is currently unable
|                     ;; to answer such prompts.  Instead, SSH will run
|                     ;; x11-ssh-askpass if possible.  If Emacs is being
|                     ;; run on a TTY without $DISPLAY, this will fail; in
|                     ;; such cases, the user should start ssh-agent and
|                     ;; then run ssh-add explicitly.
`-----

However, I do have ssh-agent running, and have also run ssh-add, but I'm
still being presented with the dialog.  Has somebody had to deal with
this?  Thanks in advance.


Cheers,

-- 
Seb





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: psvn with svn+ssh protocol working copy
  2009-10-24 15:24 psvn with svn+ssh protocol working copy Seb
@ 2009-10-24 19:12 ` Pierre Lorenzon
  0 siblings, 0 replies; 2+ messages in thread
From: Pierre Lorenzon @ 2009-10-24 19:12 UTC (permalink / raw)
  To: spluque; +Cc: help-gnu-emacs


Hi,

I encountered similar problem with cvs instead of svn. But
since psvn is implemented following same as scheme as pcvs, I
suspect the problem to be similar. I solved it writing a piece
of code caching the password. I did not have much help on this
list. Finally I got to svn with an apache server. In this
configuration passwrd is automatically cached by the svn client
and will only be asked at the first checkout. 

Regards

Pierre

From: Seb <spluque@gmail.com>
Subject: psvn with svn+ssh protocol working copy
Date: Sat, 24 Oct 2009 10:24:44 -0500

> Hi,
> 
> Although I can checkout, commit and do all operations I need from a
> shell, I cannot update my working copy of a directory under SVN control
> with svn+ssh in Emacs with psvn.  I get the message:
> 
> svn failed:
> Network connection closed unexpectedly
> 
> in the minibuffer.  Checking the comments on psvn.el, I see that using
> x11-ssh-askpass would help, so I installed Debian sid's ssh-askpass
> package, and now I'm shown a graphical dialog to enter the passphrase.
> This works fine, but requires typing the passphrase with every commit or
> update.
> 
> The comment in psvn.el ($Id: psvn.el 35820 2009-02-11 21:35:14Z) from
> GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.3) of
> 2009-10-23 on elegiac, modified by Debian, reads:
> 
> ,-----[ psvn.el (lines: 1283 - 1292) ]
> |                     ;; Communicate with the subprocess via pipes rather
> |                     ;; than via a pseudoterminal, so that if the svn+ssh
> |                     ;; scheme is being used, SSH will not ask for a
> |                     ;; passphrase via stdio; psvn.el is currently unable
> |                     ;; to answer such prompts.  Instead, SSH will run
> |                     ;; x11-ssh-askpass if possible.  If Emacs is being
> |                     ;; run on a TTY without $DISPLAY, this will fail; in
> |                     ;; such cases, the user should start ssh-agent and
> |                     ;; then run ssh-add explicitly.
> `-----
> 
> However, I do have ssh-agent running, and have also run ssh-add, but I'm
> still being presented with the dialog.  Has somebody had to deal with
> this?  Thanks in advance.
> 
> 
> Cheers,
> 
> -- 
> Seb
> 
> 
> 






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-24 19:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-24 15:24 psvn with svn+ssh protocol working copy Seb
2009-10-24 19:12 ` Pierre Lorenzon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).