diff options
| author | Richard M. Stallman | 1995-06-14 11:16:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-06-14 11:16:17 +0000 |
| commit | 7d6650086935275bc9947b5d42d2a00042fdbad4 (patch) | |
| tree | 862589fa195a144d928601551f3183a286908af0 | |
| parent | 2d38195d9449cd5f3e224825e7741baaa0b1a636 (diff) | |
| download | emacs-7d6650086935275bc9947b5d42d2a00042fdbad4.tar.gz emacs-7d6650086935275bc9947b5d42d2a00042fdbad4.zip | |
(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.
| -rw-r--r-- | lisp/vc.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 3b9fbbb7741..e82941af854 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1645,6 +1645,9 @@ From a program, any arguments are passed to the `rcs2log' script." | |||
| 1645 | ;; or if the checkin creates a new branch, set the master file branch | 1645 | ;; or if the checkin creates a new branch, set the master file branch |
| 1646 | ;; accordingly. | 1646 | ;; accordingly. |
| 1647 | (message "Checking in %s..." file) | 1647 | (message "Checking in %s..." file) |
| 1648 | ;; "This log message intentionally left almost blank". | ||
| 1649 | (and (or (not comment) (string= comment "")) | ||
| 1650 | (setq comment "*** empty log message ***")) | ||
| 1648 | (save-excursion | 1651 | (save-excursion |
| 1649 | ;; Change buffers to get local value of vc-checkin-switches. | 1652 | ;; Change buffers to get local value of vc-checkin-switches. |
| 1650 | (set-buffer (or (get-file-buffer file) (current-buffer))) | 1653 | (set-buffer (or (get-file-buffer file) (current-buffer))) |
| @@ -1708,9 +1711,7 @@ From a program, any arguments are passed to the `rcs2log' script." | |||
| 1708 | vc-checkin-switches)) | 1711 | vc-checkin-switches)) |
| 1709 | (apply 'vc-do-command 0 "cvs" file 'WORKFILE | 1712 | (apply 'vc-do-command 0 "cvs" file 'WORKFILE |
| 1710 | "ci" (if rev (concat "-r" rev)) | 1713 | "ci" (if rev (concat "-r" rev)) |
| 1711 | (if (and comment (not (string= comment ""))) | 1714 | (concat "-m" comment) |
| 1712 | (concat "-m" comment) | ||
| 1713 | "-m-") | ||
| 1714 | vc-checkin-switches) | 1715 | vc-checkin-switches) |
| 1715 | ;; determine and store the new workfile version | 1716 | ;; determine and store the new workfile version |
| 1716 | (set-buffer "*vc*") | 1717 | (set-buffer "*vc*") |