From 877dc0839bd4682488c8ea35e9f24a4445bc03fc Mon Sep 17 00:00:00 2001 From: Wolfgang Scherer Date: Wed, 28 Aug 2019 20:03:30 +0200 Subject: [PATCH] Do not use error messages as list of ignored files * lisp/vc/vc-svn.el: (vc-svn-ignore-completion-table) Ignore buffer contents, if exit status is not 0. Split buffer by lines. --- lisp/vc/vc-svn.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/vc/vc-svn.el b/lisp/vc/vc-svn.el index 3c50c8f..f25a00d 100644 --- a/lisp/vc/vc-svn.el +++ b/lisp/vc/vc-svn.el @@ -366,8 +366,8 @@ FILE is a file wildcard, relative to the root directory of DIRECTORY." (defun vc-svn-ignore-completion-table (directory) "Return the list of ignored files in DIRECTORY." (with-temp-buffer - (vc-svn-command t t nil "propget" "svn:ignore" (expand-file-name directory)) - (split-string (buffer-string)))) + (if (= (vc-svn-command t t nil "propget" "svn:ignore" (expand-file-name directory)) 0) + (split-string (buffer-string) "\n")))) (defun vc-svn-find-admin-dir (file) "Return the administrative directory of FILE." -- 2.7.4