From: Stefan Monnier Date: Tue, 31 Jul 2007 15:23:27 +0000 (+0000) Subject: (cvs-vc-command-advice): Handle the new fileset case. X-Git-Tag: emacs-pretest-23.0.90~11637 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b6e9189c676a8003a69e3157fa98530614029205;p=emacs.git (cvs-vc-command-advice): Handle the new fileset case. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f48ea78a246..c295150db71 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2007-07-31 Stefan Monnier + + * pcvs.el (cvs-vc-command-advice): Handle the new fileset case. + 2007-07-29 Kimit Yada (tiny change) * emacs-lisp/copyright.el (copyright-update-year, copyright-update) diff --git a/lisp/pcvs.el b/lisp/pcvs.el index 901110bbfa3..5c79f7a5fb9 100644 --- a/lisp/pcvs.el +++ b/lisp/pcvs.el @@ -2354,7 +2354,7 @@ The exact behavior is determined also by `cvs-dired-use-hook'." (add-hook 'vc-post-command-functions 'cvs-vc-command-advice) -(defun cvs-vc-command-advice (command file flags) +(defun cvs-vc-command-advice (command files flags) (when (and (equal command "cvs") (progn (while (and (stringp (car flags)) @@ -2383,9 +2383,10 @@ The exact behavior is determined also by `cvs-dired-use-hook'." (when (and (equal (car flags) "add") (goto-char (point-min)) (looking-at ".*to add this file permanently\n\\'")) - (insert "cvs add: scheduling file `" - (file-name-nondirectory file) - "' for addition\n")) + (dolist (file (if (listp files) files (list file))) + (insert "cvs add: scheduling file `" + (file-name-nondirectory file) + "' for addition\n"))) ;; VC never (?) does `cvs -n update' so dcd=nil ;; should probably always be the right choice. (cvs-parse-process nil subdir))))))))