+2008-04-23 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * vc.el (vc-next-action): Look at more than the first file to
+ determine the state.
+
2008-04-23 Glenn Morris <rgm@gnu.org>
* dframe.el (dframe-have-timer-flag): Drop support for Emacs without
(interactive "P")
(let* ((vc-fileset (vc-deduce-fileset nil t))
(files (cdr vc-fileset))
- (state (vc-state (car files)))
- (model (vc-checkout-model (car files)))
+ state
+ model
revision)
+ ;; Check if there's at least one file present, and get `state' and
+ ;; `model' from it.
+ ;;FIXME: do something about the case when only directories are
+ ;; present, or `files' is nil.
+ (dolist (file files)
+ (unless (file-directory-p file)
+ (setq model (vc-checkout-model (car files)))
+ (setq state (vc-state file))
+ (return)))
+
;; Verify that the fileset is homogeneous
(dolist (file (cdr files))
;; Ignore directories, they are compatible with anything.