Fix for vc-svn-merge-news.
authorChong Yidong <cyd@gnu.org>
Sat, 17 Nov 2012 07:06:57 +0000 (15:06 +0800)
committerChong Yidong <cyd@gnu.org>
Sat, 17 Nov 2012 07:06:57 +0000 (15:06 +0800)
* vc/vc-svn.el (vc-svn-merge-news): Properly parse the merge
response when the target file is in a subdirectory.

Fixes: debbugs:12757

lisp/ChangeLog
lisp/vc/vc-svn.el

index 0a9b22e..75e09bf 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-17  OKAZAKI Tetsurou  <okazaki.tetsurou@gmail.com>  (tiny change)
+
+       * vc/vc-svn.el (vc-svn-merge-news): Properly parse the merge
+       response when the target file is in a subdirectory (Bug#12757).
+
 2012-11-17  Chong Yidong  <cyd@gnu.org>
 
        * filecache.el (file-cache-add-file-list): Doc fix (Bug#12694).
index 6c2367c..5142d25 100644 (file)
@@ -399,7 +399,7 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
                ;; We also used to match the filename in column 0 without any
                ;; meta-info before it, but I believe this can never happen.
                (concat "^\\(\\([ACGDU]\\)\\(.[B ]\\)?  \\)"
-                       (regexp-quote (file-name-nondirectory file)))
+                      (regexp-quote (file-relative-name file)))
                nil t)
               (cond
                ;; Merge successful, we are in sync with repository now