# HG changeset patch # User Stefan Monnier # Date 1131942783 0 # Node ID 820fa0af32c1d87ccb68c80ab27df477225bf045 # Parent 89a5e481928a4ca4455169a34c1912f885195cf2 (vc-svn-registered): Catch all errors. diff -r 89a5e481928a -r 820fa0af32c1 lisp/ChangeLog --- a/lisp/ChangeLog Mon Nov 14 04:18:53 2005 +0000 +++ b/lisp/ChangeLog Mon Nov 14 04:33:03 2005 +0000 @@ -1,5 +1,7 @@ 2005-11-13 Stefan Monnier + * vc-svn.el (vc-svn-registered): Catch all errors. + * cus-dep.el (custom-make-dependencies): Typo. 2005-11-13 Michael Albinus diff -r 89a5e481928a -r 820fa0af32c1 lisp/vc-svn.el --- a/lisp/vc-svn.el Mon Nov 14 04:18:53 2005 +0000 +++ b/lisp/vc-svn.el Mon Nov 14 04:33:03 2005 +0000 @@ -116,8 +116,11 @@ (cd (file-name-directory file)) (condition-case nil (vc-svn-command t 0 file "status" "-v") - ;; We can't find an `svn' executable. We could also deregister SVN. - (file-error nil)) + ;; Some problem happened. E.g. We can't find an `svn' executable. + ;; We used to only catch `file-error' but when the process is run on + ;; a remote host via Tramp, the error is only reported via the + ;; exit status which is turned into an `error' by vc-do-command. + (error nil)) (vc-svn-parse-status t) (eq 'SVN (vc-file-getprop file 'vc-backend)))))