changeset 31836:69ccb7fbb1c1

(vc-switch-backend): Signal an error if the file is not registered under the new backend.
author André Spiegel <spiegel@gnu.org>
date Fri, 22 Sep 2000 07:49:19 +0000
parents 67ea0d3e062b
children 49e95bff5053
files lisp/vc.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc.el	Fri Sep 22 07:48:08 2000 +0000
+++ b/lisp/vc.el	Fri Sep 22 07:49:19 2000 +0000
@@ -2190,6 +2190,8 @@
    (list
     buffer-file-name
     (intern (upcase (read-string "Switch to backend: ")))))
+  (unless (vc-call-backend backend 'registered file)
+    (error "%s is not registered in %s" file backend))
   (vc-file-clearprops file)
   (vc-file-setprop file 'vc-backend backend)
   (vc-resynch-buffer file t t))