unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Carsten Bormann <cabo@tzi.org>, 13513@debbugs.gnu.org
Subject: bug#13513: 24.3.50; Going "--non-interactive" is the wrong thing for SVN on OSX
Date: Wed, 23 Jan 2013 03:41:41 -0500	[thread overview]
Message-ID: <bwbocgi94q.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <jwv7gn52gki.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 22 Jan 2013 14:00:27 -0500")

Stefan Monnier wrote:

> So, could someone explain to me when --non-interactive is needed?
> The report seemed to be for w32, does that mean that it's only ever needed
> for w32, or is it also sometimes needed under GNU/Linux?

IIUC on GNU/Linux:

Semi-recent svn default to using gnome-keyring to store encrypted
passwords for svn servers that need them. So suppose you are working in
a svn checkout of a remote repository that needs a password. You've
previously stored the password encrypted on your local disk.

Now you type any command that needs to contact the server (eg svn status
-u, or svn update). If at the command-line, you get a prompt:

  Password for 'login' GNOME keyring: 

You enter your normal user password, it decrypts the stored svn password
and everything then works.


If you call the same svn commands from Emacs VC prior to 24.1, it hangs
forever with no indication of what's going on (bug#9993). Using
--non-interactive makes it abort instantly with a meaningful error
message.

The OP says that on Mac OS X, the equivalent password prompt pops up as
a GUI dialogue box rather than a command-line prompt. Maybe there is
some way to make svn do that on GNU/Linux too, but I don't see it. (If
you go through the auth step in the shell prior to launching Emacs, then
update etc works from Emacs too without need any prompt; presumably the
decrypted svn password is cached for the rest of the session). (Note
also that bug#7152 is about needing non-interactive on Mac OS X. Maybe
it depends how you configure it?)


There is a relate issue of what happens if you manage to do an update
and it brings in conflicts. By default, this drops you into interactive
conflict resolution (bug#4280, 7152). As the OP says, this could perhaps
also be avoided using --accept=postpone rather than --non-interactive.


So in summary as far as we knew till now, all platforms needed
--non-interactive to avoid Emacs waiting forever for svn to respond,
with no indication as to what was going on.

IIUC, future svn will/may default to non-interactive in the Emacs case:
http://svn.haxx.se/dev/archive-2012-12/0432.shtml





  reply	other threads:[~2013-01-23  8:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-21 13:25 bug#13513: 24.3.50; Going "--non-interactive" is the wrong thing for SVN on OSX Carsten Bormann
2013-01-22  2:02 ` Glenn Morris
2013-01-22  7:06   ` Carsten Bormann
2013-01-22 14:57     ` Stefan Monnier
2013-01-22 16:59       ` Glenn Morris
2013-01-22 19:00         ` Stefan Monnier
2013-01-23  8:41           ` Glenn Morris [this message]
2013-01-23  8:46             ` Glenn Morris
2013-01-23 21:53             ` Carsten Bormann
2013-01-30 16:42             ` Stefan Monnier
2013-01-30 17:02               ` Glenn Morris
2013-01-30 20:58                 ` Stefan Monnier
2013-01-30 21:07                   ` Glenn Morris
2013-01-30 21:10                     ` Glenn Morris
2013-02-11  1:08                       ` Glenn Morris
2013-01-22 18:14 ` Glenn Morris
2013-01-22 22:09   ` Carsten Bormann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bwbocgi94q.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=13513@debbugs.gnu.org \
    --cc=cabo@tzi.org \
    --cc=monnier@IRO.UMontreal.CA \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).