From: Eric S. Raymond Date: Fri, 2 May 2008 03:52:08 +0000 (+0000) Subject: Better error message on missing files. X-Git-Tag: emacs-pretest-23.0.90~5891 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3c73c30e89cd74984fd6f6256ae803d3a157e44c;p=emacs.git Better error message on missing files. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e9d6ded2cd8..1611fec08b1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -35,8 +35,8 @@ and was somewhat misleading. * vc-cvs.el (vc-cvs-delete-file) Don't do a "cvs commit" immediately after removing the file. - * vc.el (vc-next-action): More informative message when a fileset - is in a mixed state. + * vc.el (vc-next-action): More informative messages when a fileset + is in a mixed state or files are missing. 2008-05-01 Sam Steingold diff --git a/lisp/vc.el b/lisp/vc.el index 82d59c0f84d..a56b281122b 100644 --- a/lisp/vc.el +++ b/lisp/vc.el @@ -621,9 +621,6 @@ ;; ;; - add a mechanism for ignoring files. ;; -;; - vc-next-action should do something about 'missing files. Maybe -;; just warn, or offer to checkout. -;; ;; - When vc-next-action calls vc-checkin it could pre-fill the ;; *VC-log* buffer with some obvious items: the list of files that ;; were added, the list of files that were removed. If the diff is @@ -1653,6 +1650,8 @@ merge in the changes into your working copy." (error "Aborted"))))))) ;; Do the right thing (cond + ((eq state 'missing) + (error "Fileset files are missing, so cannot be operated on.")) ;; Files aren't registered ((or (eq state 'unregistered) (eq state 'ignored))