1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Do not use error messages as list of ignored files in vc-svn

* lisp/vc/vc-svn.el: (vc-svn-ignore-completion-table) Ignore buffer
contents, if exit status is not 0.  Split buffer by lines (bug#37214).
This commit is contained in:
Wolfgang Scherer 2019-09-15 15:14:44 +02:00 committed by Lars Ingebrigtsen
parent f144c87f92
commit 12b1cce925

View file

@ -366,8 +366,9 @@ 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))))
(when (zerop (vc-svn-command
t t nil "propget" "svn:ignore" (expand-file-name directory)))
(split-string (buffer-string) "\n"))))
(defun vc-svn-find-admin-dir (file)
"Return the administrative directory of FILE."