diff options
author | Wolfgang Scherer <wolfgang.scherer@gmx.de> | 2019-09-15 15:14:44 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-09-15 15:14:44 +0200 |
commit | 12b1cce925bb56c699ff9160642b8598f6fb9d9b (patch) | |
tree | 6e9bfa08f585e63217640a60ed6206ed2a96726f /lisp/vc/vc-svn.el | |
parent | f144c87f92bb9930c9fdafc39bbcdfbb7c7bb983 (diff) | |
download | emacs-12b1cce925bb56c699ff9160642b8598f6fb9d9b.tar.gz emacs-12b1cce925bb56c699ff9160642b8598f6fb9d9b.tar.bz2 emacs-12b1cce925bb56c699ff9160642b8598f6fb9d9b.zip |
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).
Diffstat (limited to 'lisp/vc/vc-svn.el')
-rw-r--r-- | lisp/vc/vc-svn.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/vc/vc-svn.el b/lisp/vc/vc-svn.el index 3c50c8fff64..88a280d10f3 100644 --- a/lisp/vc/vc-svn.el +++ b/lisp/vc/vc-svn.el @@ -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." |