aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-06-23 15:50:17 +0000
committerRichard M. Stallman1995-06-23 15:50:17 +0000
commit9e0cc6e686a69b95b2fe5d15e6d1850a2b7f27b1 (patch)
tree6f7660952e33c575c6119251674a84e7ff262a6a
parent6276efb0a6d281815fc469a267fcc42419a0ebe4 (diff)
downloademacs-9e0cc6e686a69b95b2fe5d15e6d1850a2b7f27b1.tar.gz
emacs-9e0cc6e686a69b95b2fe5d15e6d1850a2b7f27b1.zip
(vc-backend-admin, vc-backend-checkin): Assume that
comments are empty if they contain only white space.
-rw-r--r--lisp/vc.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 8cd4a752a43..2629b9268e1 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -1545,7 +1545,7 @@ From a program, any arguments are passed to the `rcs2log' script."
1545 ((eq backend 'CVS) 1545 ((eq backend 'CVS)
1546 (vc-do-command 0 "cvs" file 'WORKFILE ;; CVS 1546 (vc-do-command 0 "cvs" file 'WORKFILE ;; CVS
1547 "add" 1547 "add"
1548 (and comment (not (string= comment "")) 1548 (and comment (string-match "[^\t\n ]" comment)
1549 (concat "-m" comment))) 1549 (concat "-m" comment)))
1550 ))) 1550 )))
1551 (message "Registering %s...done" file) 1551 (message "Registering %s...done" file)
@@ -1688,8 +1688,9 @@ From a program, any arguments are passed to the `rcs2log' script."
1688 ;; accordingly. 1688 ;; accordingly.
1689 (message "Checking in %s..." file) 1689 (message "Checking in %s..." file)
1690 ;; "This log message intentionally left almost blank". 1690 ;; "This log message intentionally left almost blank".
1691 (and (or (not comment) (string= comment "")) 1691 ;; RCS 5.7 gripes about white-space-only comments too.
1692 (setq comment "*** empty log message ***")) 1692 (or (and comment (string-match "[^\t\n ]" comment))
1693 (setq comment "*** empty log message ***"))
1693 (save-excursion 1694 (save-excursion
1694 ;; Change buffers to get local value of vc-checkin-switches. 1695 ;; Change buffers to get local value of vc-checkin-switches.
1695 (set-buffer (or (get-file-buffer file) (current-buffer))) 1696 (set-buffer (or (get-file-buffer file) (current-buffer)))