GNU bug report logs -
#7663
23.2; duplicate entries in vc-dir-mode (Windows) due to backslash from svn output
Previous Next
Reported by: Vagn Johansen <gonz808 <at> hotmail.com>
Date: Fri, 17 Dec 2010 17:08:02 UTC
Severity: normal
Tags: patch
Merged with 996
Found in version 23.2
Fixed in version 24.1
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 7663 in the body.
You can then email your comments to 7663 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7663
; Package
emacs
.
(Fri, 17 Dec 2010 17:08:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Vagn Johansen <gonz808 <at> hotmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 17 Dec 2010 17:08:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug. If you can, give
a recipe starting from `emacs -Q':
Inv vc-dir i commit changes a file i subdirectory. After the commit I
have a duplicate entry:
VC backend : SVN
Working dir: c:/dev/proj/sandbox/
Repository : http://albatross.rd.evalesco.com:81/svn/sandbox
./
dummy/
up-to-date dummy/ddd
edited dummy\ddd
I use SlikSvn on windows which outputs backslashes in svn commands.
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
c:/tools/emacs-23.2/etc/DEBUG.
In GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600)
of 2010-05-08 on G41R2F1
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include'
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: DAN
value of $XMODIFIERS: nil
locale-coding-system: cp1252
default enable-multibyte-characters: t
Major mode: VC dir
Minor modes in effect:
vc-parent-buffer: *vc-dir*|sandbox
recentf-mode: t
iswitchb-mode: t
diff-auto-refine-mode: t
show-paren-mode: t
tooltip-mode: t
mouse-wheel-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-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> C-a v t e s t C-c
C-c <down-mouse-1> <mouse-1> v C-c C-c <down-mouse-1>
<mouse-1> <down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1>
<down-mouse-1> <mouse-1> v 8 1 3 9 : SPC s a n d b
o x SPC C-c C-c C-x k <return> C-x k <return> C-x k
<return> e c h o SPC > > SPC <backspace> <backspace>
<backspace> <backspace> SPC t e s t SPC > > C-c C-c
c d SPC . . <return> e c h o SPC t e s t SPC > > SPC
d u m <tab> d <tab> <return> s v n SPC d i f f <return>
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> <return>
C-x v d <return> <down> <down> <down> <down> <down>
<down> m v <up> M-p <up> <end> SPC 2 C-c C-c <down-mouse-1>
<mouse-1> C-x 4 b v c C-s <return> <down-mouse-1> <mouse-1>
<down-mouse-1> <mouse-1> <help-echo> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <down-mouse-1> <mouse-1>
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> C-x
k <return> <up> <return> <up> <up> <up> <up> <return>
C-x o g g <down-mouse-1> <mouse-1> s v n SPC s t <return>
<up> SPC | SPC t r SPC ' \ ' SPC ' / ' <return> <return>
<up> <left> <left> <left> <left> <left> <left> \ <return>
<help-echo> <down-mouse-1> <mouse-1> M-x e m a c s
- s u b <tab> <tab> <backspace> <backspace> <tab> <M-backspace>
<M-backspace> <M-backspace> s u b m <tab> <tab> <backspace>
<tab> C-g M-x p a r <tab> <M-backspace> a p r <tab>
<return> b u t <backspace> g - r e <return> <help-echo>
<help-echo> <down-mouse-1> <mouse-1> M-x s u b <tab>
C-g <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar>
<help-menu> <send-emacs-bug-report>
Recent messages:
Checking in c:/dev/proj/sandbox/dummy/ddd...done
History item: 128 [2 times]
History item: 127
History item: 126
History item: 125
Saving file c:/dev/proj/sandbox/dummy/ddd...
Wrote c:/dev/proj/sandbox/dummy/ddd
History item: 128 [2 times]
Quit [2 times]
Making completion list...
Quit
Load-path shadows:
None found.
Features:
(shadow sort mail-extr message ecomplete rfc822 mml mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc
time-date mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util
hashcash mail-utils emacsbug apropos vc-cvs vc-rcs vc-dir ewoc
vc-annotate vc debug image-file image-dired format-spec image-mode
vc-dispatcher vc-svn cus-edit multi-isearch find-func help-mode view
dabbrev pcmpl-unix ansi-color em-unix pcomplete em-term term ehelp
electric em-script em-prompt em-ls em-hist em-pred em-glob em-dirs
em-cmpl em-basic esh-opt em-banner em-alias esh-var esh-io esh-cmd
esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode
esh-util uniquify recentf tree-widget iswitchb cus-start cus-load
generic vj-complete-elisp thingatpt vj-complete-csharp vj-complete-util
vj-complete anything woman man assoc color-theme csharp-mode cc-langs
cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs vps vj-util dired-x dired-aux etags compile comint psvn byte-opt
bytecomp byte-compile advice help-fns advice-preload derived wid-edit cl
cl-19 log-edit ring pcvs-util add-log diff-mode easy-mmode pp elp
ediff-merg ediff-diff ediff-wind ediff-mult ediff-help ediff-init
ediff-util dired regexp-opt easymenu edmacro kmacro paren server tooltip
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp
w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register
page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button
minibuffer faces cus-face files text-properties overlay md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process multi-tty emacs)
Message #6 received at 7663-quiet <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I reported bug 7663 some time ago:
#7663 23.2; duplicate entries in vc-dir-mode (Windows) due to
backslash from svn output
Here is a patch with a one line fix.
The subversion command svn.exe I use on windows output backslashes. In
all other places in vc-svn.el a call to expand-file-name causes these
to replaced with forward slashes.
The problem was that same file ends up appearing twice in the vc-dir
buffer.
2011-02-24 Vagn Johansen <vagn.johansen <at> gmail.com>
* vc/vc-svn.el (vc-svn-after-dir-status): Replace backslash
with forward slash in output from svn commmand.
[vc-svn-backslash-fix.diff (text/x-patch, inline)]
diff --git a/lisp/vc/vc-svn.el b/lisp/vc/vc-svn.el
index 20c7689..2aa613d 100644
--- a/lisp/vc/vc-svn.el
+++ b/lisp/vc/vc-svn.el
@@ -174,7 +174,7 @@ If you want to force an empty list of arguments, use t."
(while (re-search-forward re nil t)
(let ((state (cdr (assq (aref (match-string 1) 0) state-map)))
(propstat (cdr (assq (aref (match-string 2) 0) state-map)))
- (filename (match-string 4)))
+ (filename (replace-regexp-in-string "\\\\" "/" (match-string 4))))
(and (memq propstat '(conflict edited))
(not (eq state 'conflict)) ; conflict always wins
(setq state propstat))
[Message part 3 (text/plain, inline)]
--
Vagn Johansen
Message #7 received at 7663-quiet <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
>
> Thanks.
>
> I think this replacement should be limited to MS-Windows and MS-DOS
> systems, because on Posix platforms, the backslash is a valid
> character in a file name.
>
This should do it. Tested on Windows 7 and Debian 6.
[vc-svn-backslash-fix-2.diff (text/x-patch, inline)]
diff --git a/lisp/vc/vc-svn.el b/lisp/vc/vc-svn.el
index 20c7689..274c4a9 100644
--- a/lisp/vc/vc-svn.el
+++ b/lisp/vc/vc-svn.el
@@ -174,7 +174,10 @@ If you want to force an empty list of arguments, use t."
(while (re-search-forward re nil t)
(let ((state (cdr (assq (aref (match-string 1) 0) state-map)))
(propstat (cdr (assq (aref (match-string 2) 0) state-map)))
- (filename (match-string 4)))
+ (filename
+ (if (memq system-type '(windows-nt ms-dos))
+ (replace-regexp-in-string "\\\\" "/" (match-string 4))
+ (match-string 4))))
(and (memq propstat '(conflict edited))
(not (eq state 'conflict)) ; conflict always wins
(setq state propstat))
[Message part 3 (text/plain, inline)]
--
Vagn Johansen
Merged 996 7663.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 01 Mar 2011 23:36:01 GMT)
Full text and
rfc822 format available.
Added tag(s) patch.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 01 Mar 2011 23:36:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Thu, 03 Mar 2011 07:28:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vagn Johansen <gonz808 <at> hotmail.com>
:
bug acknowledged by developer.
(Thu, 03 Mar 2011 07:28:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 7663-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.1
Vagn Johansen wrote:
> This should do it. Tested on Windows 7 and Debian 6.
Thanks; applied.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Thu, 03 Mar 2011 07:28:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Kevin Yu" <yujie052 <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 03 Mar 2011 07:28:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 31 Mar 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 83 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.