From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 12:24:32 2011 Received: (at submit) by debbugs.gnu.org; 8 Nov 2011 17:24:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNpPS-0000Ot-Us for submit@debbugs.gnu.org; Tue, 08 Nov 2011 12:24:31 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNmDn-0001fC-KO for submit@debbugs.gnu.org; Tue, 08 Nov 2011 09:00:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNmAr-0006IC-T9 for submit@debbugs.gnu.org; Tue, 08 Nov 2011 08:57:17 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:41993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNmAr-0006I7-R6 for submit@debbugs.gnu.org; Tue, 08 Nov 2011 08:57:13 -0500 Received: from eggs.gnu.org ([140.186.70.92]:39736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNmAn-0003iU-Ls for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 08:57:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNmAg-0006GU-0C for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 08:57:09 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:49762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNmAf-0006GO-Rt for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 08:57:01 -0500 Received: by gyg10 with SMTP id 10so677651gyg.0 for ; Tue, 08 Nov 2011 05:57:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=ptOtfiCkxiD2izyXZWFmCAcL4jbsGF0PVn/m3kt/YVU=; b=QYgK6y32lHwoZSmSQ64dru3istujPHN2Gfw74qyRi+FNz8FjSMI757/sa7HCeoql5O 3iDaLTndsD4KdfGXZjZ/BRjZtsapK+YImBqRzrlWjuYf7VgVM+xP23HvWoUgJCrji69+ r6r881hLYepcyQ/ZFYvphhWMbDT7Tq+EsR/Nk= MIME-Version: 1.0 Received: by 10.50.87.227 with SMTP id bb3mr49636224igb.29.1320760621157; Tue, 08 Nov 2011 05:57:01 -0800 (PST) Received: by 10.50.161.196 with HTTP; Tue, 8 Nov 2011 05:57:01 -0800 (PST) Date: Tue, 8 Nov 2011 13:57:01 +0000 Message-ID: Subject: `vc-svn-checkin' needs "--non-interactive" From: Richard Copley To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 08 Nov 2011 12:24:26 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) When visiting a file in a Subversion working copy, if the repository url is http and the server requires authentication for check-ins, when you type "C-x v v" to check in (the file has local changes), Emacs hangs (presumably svn thinks it has prompted for credentials and is awaiting a response). To recover, it is necessary to kill the "svn.exe" process and run "svn cleanup" on the (now locked) working copy. `vc-svn-checkin' should pass "--non-interactive" to the svn executable. (Checking-in still won't work, but at least you get an error promptly.) As a workaround, set the variable `vc-svn-checkin-switches' to "--non-interactive". All svn invocations are probably potentially affected, depending on how the server is set up. Indeed, I don't see why vc-mode shouldn't pass "--non-interactive" to every svn invocation. In GNU Emacs 24.0.91.1 (i386-mingw-nt5.1.2600) of 2011-10-31 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.6) --no-opt --cflags -I"D:/devel/emacs/libs/libXpm-3.5.8/include" -I"D:/devel/emacs/libs/libXpm-3.5.8/src" -I"D:/devel/emacs/libs/libpng-dev_1.4.3-1/include" -I"D:/devel/emacs/libs/zlib-dev_1.2.5-2/include" -I"D:/devel/emacs/libs/giflib-4.1.4-1/include" -I"D:/devel/emacs/libs/jpeg-6b-4/include" -I"D:/devel/emacs/libs/tiff-3.8.2-1/include" -I"D:/devel/emacs/libs/gnutls-2.10.1/include" --ldflags -L"D:/devel/emacs/libs/gnutls-2.10.1/lib"' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENG value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Help Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 17:31:21 2011 Received: (at 9993) by debbugs.gnu.org; 8 Nov 2011 22:31:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNuCP-0001RL-Cx for submit@debbugs.gnu.org; Tue, 08 Nov 2011 17:31:21 -0500 Received: from fencepost.gnu.org ([140.186.70.10] ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNuCM-0001RE-Ha for 9993@debbugs.gnu.org; Tue, 08 Nov 2011 17:31:19 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RNuCK-0007Sv-NV; Tue, 08 Nov 2011 17:31:16 -0500 From: Glenn Morris To: Richard Copley Subject: Re: bug#9993: `vc-svn-checkin' needs "--non-interactive" References: X-Spook: ASPIC Geraldton beanpole quiche Merlin cracking offensive X-Ran: );b@5pRs=Vq)t[/]F"@c5f;G9nt+O`Eu8t:--5N!Zqh;bu;rd+AL+u?@gI/h`yLNV0pE>U X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 08 Nov 2011 17:31:16 -0500 In-Reply-To: (Richard Copley's message of "Tue, 8 Nov 2011 13:57:01 +0000") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 9993 Cc: 9993@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Richard Copley wrote: > `vc-svn-checkin' should pass "--non-interactive" to the svn > executable. (Checking-in still won't work, but at least you get an > error promptly.) As a workaround, set the variable > `vc-svn-checkin-switches' to "--non-interactive". > > All svn invocations are probably potentially affected, depending on > how the server is set up. Indeed, I don't see why vc-mode shouldn't > pass "--non-interactive" to every svn invocation. Cf bugs 4280 and 7152. Perhaps we should just add --non-interactive to vc-svn-global-switches, or make vc-svn-command unconditionally add it, and be done with this once and for all (hopefully...). Although like http://svn.haxx.se/dev/archive-2008-05/0762.shtml, I wonder why svn cannot default to non-interactive when stdin is not a tty. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 20:25:19 2011 Received: (at 9993) by debbugs.gnu.org; 9 Nov 2011 01:25:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNwul-00063e-6n for submit@debbugs.gnu.org; Tue, 08 Nov 2011 20:25:19 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNwui-00063Q-GO for 9993@debbugs.gnu.org; Tue, 08 Nov 2011 20:25:17 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmwFAEHWuU5MCoYy/2dsb2JhbABEqH6BJYEGgXIBAQQBViMFCwsOJhIUGA0kiBUIuEWJLQSIC5lahEg X-IronPort-AV: E=Sophos;i="4.69,480,1315195200"; d="scan'208";a="146985506" Received: from 76-10-134-50.dsl.teksavvy.com (HELO pastel.home) ([76.10.134.50]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 08 Nov 2011 20:25:08 -0500 Received: by pastel.home (Postfix, from userid 20848) id 692D65936A; Tue, 8 Nov 2011 20:25:07 -0500 (EST) From: Stefan Monnier To: Glenn Morris Subject: Re: bug#9993: `vc-svn-checkin' needs "--non-interactive" Message-ID: References: Date: Tue, 08 Nov 2011 20:25:07 -0500 In-Reply-To: (Glenn Morris's message of "Tue, 08 Nov 2011 17:31:16 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 9993 Cc: Richard Copley , 9993@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > Perhaps we should just add --non-interactive to vc-svn-global-switches, That's a user var, so better leave it alone. > or make vc-svn-command unconditionally add it, and be done with this > once and for all (hopefully...). That sounds right. > Although like http://svn.haxx.se/dev/archive-2008-05/0762.shtml, > I wonder why svn cannot default to non-interactive when stdin is not a > tty. We can add a comment in our code that --non-interactive is a workaround and that svn should do it automatically since we're using a pipe. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 21:40:04 2011 Received: (at 9993-done) by debbugs.gnu.org; 10 Nov 2011 02:40:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROKYb-0000Vj-Ow for submit@debbugs.gnu.org; Wed, 09 Nov 2011 21:40:03 -0500 Received: from fencepost.gnu.org ([140.186.70.10] ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROKYX-0000VT-L3 for 9993-done@debbugs.gnu.org; Wed, 09 Nov 2011 21:40:00 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1ROKYP-00033Y-54; Wed, 09 Nov 2011 21:39:49 -0500 From: Glenn Morris To: 9993-done@debbugs.gnu.org Subject: Re: bug#9993: `vc-svn-checkin' needs "--non-interactive" References: X-Spook: KGB Bosnia Commecen White Water BRLO Yukon Craig X-Ran: ~b~l!elGeY7QGFC+>+kO2SHgsAdQx.=](x_`]o05y0GiX[2Q$-rT"W|6AV&(9T}cPd]t^p X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 09 Nov 2011 21:39:49 -0500 In-Reply-To: (Stefan Monnier's message of "Tue, 08 Nov 2011 20:25:07 -0500") Message-ID: <0uzkg4n1je.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 9993-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Version: 24.0.92 Stefan Monnier wrote: >> or make vc-svn-command unconditionally add it > > That sounds right. Done. > We can add a comment in our code that --non-interactive is a workaround > and that svn should do it automatically since we're using a pipe. Gotta cater to the common use case of find . -name '*.pdf' | xargs svn update though. (http://svn.haxx.se/dev/archive-2009-04/0094.shtml) Maybe newer svn DTRT though. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 10 00:15:21 2011 Received: (at 9993) by debbugs.gnu.org; 10 Nov 2011 05:15:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROMyt-00040V-QN for submit@debbugs.gnu.org; Thu, 10 Nov 2011 00:15:20 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROMyq-00040F-6R for 9993@debbugs.gnu.org; Thu, 10 Nov 2011 00:15:17 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqcHAKxdu05MCoYy/2dsb2JhbABCmm2POIEGgXIBAQQBViMQCzQSFBgNiDm4Fol/BIgMmWGESA X-IronPort-AV: E=Sophos;i="4.69,486,1315195200"; d="scan'208";a="147320268" Received: from 76-10-134-50.dsl.teksavvy.com (HELO pastel.home) ([76.10.134.50]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 10 Nov 2011 00:14:52 -0500 Received: by pastel.home (Postfix, from userid 20848) id 21CB25936A; Thu, 10 Nov 2011 00:14:52 -0500 (EST) From: Stefan Monnier To: 9993@debbugs.gnu.org Subject: Re: bug#9993: `vc-svn-checkin' needs "--non-interactive" Message-ID: References: <0uzkg4n1je.fsf@fencepost.gnu.org> Date: Thu, 10 Nov 2011 00:14:52 -0500 In-Reply-To: <0uzkg4n1je.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 09 Nov 2011 21:39:49 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 9993 Cc: rgm@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >>> or make vc-svn-command unconditionally add it >> That sounds right. > Done. >> We can add a comment in our code that --non-interactive is a workaround >> and that svn should do it automatically since we're using a pipe. > Gotta cater to the common use case of > find . -name '*.pdf' | xargs svn update Yes, I think the real test is not "is stdin a tty" but "are we connected to a tty", which would work right in both cases (an Emacs subprocess connected via a pipe does not have an associated tty whereas the above svn command would if typed in bash). Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 10 04:25:25 2011 Received: (at 9993) by debbugs.gnu.org; 10 Nov 2011 09:25:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROQsu-0001Jx-Um for submit@debbugs.gnu.org; Thu, 10 Nov 2011 04:25:25 -0500 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROQst-0001Jp-3q for 9993@debbugs.gnu.org; Thu, 10 Nov 2011 04:25:24 -0500 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 07FE91801408; Thu, 10 Nov 2011 10:26:58 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 881341C000F6; Thu, 10 Nov 2011 10:25:11 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id stpqNGF9eRTo; Thu, 10 Nov 2011 10:25:10 +0100 (CET) Received: from hase.home (ppp-88-217-123-222.dynamic.mnet-online.de [88.217.123.222]) by mail.mnet-online.de (Postfix) with ESMTP; Thu, 10 Nov 2011 10:25:10 +0100 (CET) From: Andreas Schwab To: Stefan Monnier Subject: Re: bug#9993: `vc-svn-checkin' needs "--non-interactive" References: <0uzkg4n1je.fsf@fencepost.gnu.org> X-Yow: I can't decide which WRONG TURN to make first!! I wonder if BOB GUCCIONE has these problems! Date: Thu, 10 Nov 2011 10:25:10 +0100 In-Reply-To: (Stefan Monnier's message of "Thu, 10 Nov 2011 00:14:52 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9993 Cc: 9993@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Stefan Monnier writes: >>>> or make vc-svn-command unconditionally add it >>> That sounds right. >> Done. >>> We can add a comment in our code that --non-interactive is a workaround >>> and that svn should do it automatically since we're using a pipe. >> Gotta cater to the common use case of >> find . -name '*.pdf' | xargs svn update > > Yes, I think the real test is not "is stdin a tty" The real test is "is the channel where we ask the question a tty". Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Sun Aug 17 04:20:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 08 Dec 2011 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator