From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <5h622qht57.fsf@fencepost.gnu.org> <83BD3F4A-FD6A-4592-A1E1-1629DBEE3B0B@tzi.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1358930519 6507 80.91.229.3 (23 Jan 2013 08:41:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jan 2013 08:41:59 +0000 (UTC) Cc: Carsten Bormann , 13513@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 23 09:42:18 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TxvuS-0003tk-Nf for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Jan 2013 09:42:16 +0100 Original-Received: from localhost ([::1]:46211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxvuB-00063U-JR for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Jan 2013 03:41:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txvu4-00063F-AQ for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2013 03:41:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Txvu1-000813-E5 for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2013 03:41:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txvu1-00080y-BF for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2013 03:41:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TxvvC-0001ew-Jw for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2013 03:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Jan 2013 08:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13513-submit@debbugs.gnu.org id=B13513.13589305816371 (code B ref 13513); Wed, 23 Jan 2013 08:43:02 +0000 Original-Received: (at 13513) by debbugs.gnu.org; 23 Jan 2013 08:43:01 +0000 Original-Received: from localhost ([127.0.0.1]:45589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxvvB-0001eh-2P for submit@debbugs.gnu.org; Wed, 23 Jan 2013 03:43:01 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:52726) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Txvv7-0001eY-AM for 13513@debbugs.gnu.org; Wed, 23 Jan 2013 03:42:59 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Txvtu-0006Lc-2F; Wed, 23 Jan 2013 03:41:42 -0500 X-Spook: USCOI Treasury Lexis-Nexis Ft. Bragg Telex AUTODIN ICE X-Ran: COr)TE&#UC]b!u'?]~[fKg%m>5{W+U1[c?bP2^#o]={WD9#BP'fAn/M3$eE)K>74Byp#;S X-Hue: cyan X-Attribution: GM In-Reply-To: (Stefan Monnier's message of "Tue, 22 Jan 2013 14:00:27 -0500") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70198 Archived-At: 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