GNU bug report logs - #7663
23.2; duplicate entries in vc-dir-mode (Windows) due to backslash from svn output

Previous Next

Package: emacs;

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.

Full log


Message #6 received at 7663-quiet <at> debbugs.gnu.org (full text, mbox):

From: Vagn Johansen <gonz808 <at> hotmail.com>
To: 7663-quiet <at> debbugs.gnu.org
Subject: patch for bug 7553: duplicate entries in vc-dir-mode (Windows) due
	to backslash from svn output
Date: Thu, 24 Feb 2011 23:07:03 +0100
[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

This bug report was last modified 14 years and 84 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.