Mercurial > emacs
changeset 12210:a74a202e9660
(vc-backend-checkin): Provide an explicit string saying
the log message is empty instead of providing it as empty.
Always use -m option for ci.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 14 Jun 1995 11:16:17 +0000 |
parents | 5537ed125771 |
children | 472729271c30 |
files | lisp/vc.el |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/vc.el Wed Jun 14 00:45:28 1995 +0000 +++ b/lisp/vc.el Wed Jun 14 11:16:17 1995 +0000 @@ -1645,6 +1645,9 @@ ;; or if the checkin creates a new branch, set the master file branch ;; accordingly. (message "Checking in %s..." file) + ;; "This log message intentionally left almost blank". + (and (or (not comment) (string= comment "")) + (setq comment "*** empty log message ***")) (save-excursion ;; Change buffers to get local value of vc-checkin-switches. (set-buffer (or (get-file-buffer file) (current-buffer))) @@ -1708,9 +1711,7 @@ vc-checkin-switches)) (apply 'vc-do-command 0 "cvs" file 'WORKFILE "ci" (if rev (concat "-r" rev)) - (if (and comment (not (string= comment ""))) - (concat "-m" comment) - "-m-") + (concat "-m" comment) vc-checkin-switches) ;; determine and store the new workfile version (set-buffer "*vc*")