GNU bug report logs -
#9993
`vc-svn-checkin' needs "--non-interactive"
Previous Next
Reported by: Richard Copley <rcopley <at> gmail.com>
Date: Tue, 8 Nov 2011 17:25:10 UTC
Severity: normal
Fixed in version 24.0.92
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9993 in the body.
You can then email your comments to 9993 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9993
; Package
emacs
.
(Tue, 08 Nov 2011 17:25:11 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Richard Copley <rcopley <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 08 Nov 2011 17:25:11 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9993
; Package
emacs
.
(Tue, 08 Nov 2011 22:32:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 9993 <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9993
; Package
emacs
.
(Wed, 09 Nov 2011 01:26:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 9993 <at> debbugs.gnu.org (full text, mbox):
> 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
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Thu, 10 Nov 2011 02:41:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Richard Copley <rcopley <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 10 Nov 2011 02:41:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 9993-done <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9993
; Package
emacs
.
(Thu, 10 Nov 2011 05:16:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 9993 <at> debbugs.gnu.org (full text, mbox):
>>> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9993
; Package
emacs
.
(Thu, 10 Nov 2011 09:26:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 9993 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> 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 <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 08 Dec 2011 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 255 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.