aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2020-08-20 15:54:38 +0200
committerLars Ingebrigtsen2020-08-20 15:54:38 +0200
commit0faa2c95904914731ec68d09fe5fcbbc375db6b1 (patch)
tree0d75bbecde278b859b23b612779a80eb11c10468
parent219e80f0a37124777803723d0f8bbc84b0cc0b0f (diff)
downloademacs-0faa2c95904914731ec68d09fe5fcbbc375db6b1.tar.gz
emacs-0faa2c95904914731ec68d09fe5fcbbc375db6b1.zip
Remove the "Summary: " but from cvs checkins
* lisp/vc/vc-cvs.el (vc-cvs-checkin): Remove the "Summary:" bit from the comment (bug#40506).
-rw-r--r--lisp/vc/vc-cvs.el33
1 files changed, 17 insertions, 16 deletions
diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el
index e8231ecb289..a2bed1ef405 100644
--- a/lisp/vc/vc-cvs.el
+++ b/lisp/vc/vc-cvs.el
@@ -339,30 +339,31 @@ its parents."
339 339
340(defun vc-cvs-checkin (files comment &optional rev) 340(defun vc-cvs-checkin (files comment &optional rev)
341 "CVS-specific version of `vc-backend-checkin'." 341 "CVS-specific version of `vc-backend-checkin'."
342 (unless (or (not rev) (vc-cvs-valid-revision-number-p rev)) 342 (unless (or (not rev) (vc-cvs-valid-revision-number-p rev))
343 (if (not (vc-cvs-valid-symbolic-tag-name-p rev)) 343 (if (not (vc-cvs-valid-symbolic-tag-name-p rev))
344 (error "%s is not a valid symbolic tag name" rev) 344 (error "%s is not a valid symbolic tag name" rev)
345 ;; If the input revision is a valid symbolic tag name, we create it 345 ;; If the input revision is a valid symbolic tag name, we create it
346 ;; as a branch, commit and switch to it. 346 ;; as a branch, commit and switch to it.
347 (apply 'vc-cvs-command nil 0 files "tag" "-b" (list rev)) 347 (apply 'vc-cvs-command nil 0 files "tag" "-b" (list rev))
348 (apply 'vc-cvs-command nil 0 files "update" "-r" (list rev)) 348 (apply 'vc-cvs-command nil 0 files "update" "-r" (list rev))
349 (mapc (lambda (file) (vc-file-setprop file 'vc-cvs-sticky-tag rev)) 349 (mapc (lambda (file) (vc-file-setprop file 'vc-cvs-sticky-tag rev))
350 files))) 350 files)))
351 (let ((status (apply 'vc-cvs-command nil 1 files 351 (let ((status (apply
352 "ci" (if rev (concat "-r" rev)) 352 'vc-cvs-command nil 1 files
353 (concat "-m" comment) 353 "ci" (if rev (concat "-r" rev))
354 (vc-switches 'CVS 'checkin)))) 354 (concat "-m" (car (log-edit-extract-headers nil comment)))
355 (vc-switches 'CVS 'checkin))))
355 (set-buffer "*vc*") 356 (set-buffer "*vc*")
356 (goto-char (point-min)) 357 (goto-char (point-min))
357 (when (not (zerop status)) 358 (when (not (zerop status))
358 ;; Check checkin problem. 359 ;; Check checkin problem.
359 (cond 360 (cond
360 ((re-search-forward "Up-to-date check failed" nil t) 361 ((re-search-forward "Up-to-date check failed" nil t)
361 (mapc (lambda (file) (vc-file-setprop file 'vc-state 'needs-merge)) 362 (mapc (lambda (file) (vc-file-setprop file 'vc-state 'needs-merge))
362 files) 363 files)
363 (error "%s" (substitute-command-keys 364 (error "%s" (substitute-command-keys
364 (concat "Up-to-date check failed: " 365 (concat "Up-to-date check failed: "
365 "type \\[vc-next-action] to merge in changes")))) 366 "type \\[vc-next-action] to merge in changes"))))
366 (t 367 (t
367 (pop-to-buffer (current-buffer)) 368 (pop-to-buffer (current-buffer))
368 (goto-char (point-min)) 369 (goto-char (point-min))
@@ -372,7 +373,7 @@ its parents."
372 ;; Otherwise we can't necessarily tell what goes with what; clear 373 ;; Otherwise we can't necessarily tell what goes with what; clear
373 ;; its properties so they have to be refetched. 374 ;; its properties so they have to be refetched.
374 (if (= (length files) 1) 375 (if (= (length files) 1)
375 (vc-file-setprop 376 (vc-file-setprop
376 (car files) 'vc-working-revision 377 (car files) 'vc-working-revision
377 (vc-parse-buffer "^\\(new\\|initial\\) revision: \\([0-9.]+\\)" 2)) 378 (vc-parse-buffer "^\\(new\\|initial\\) revision: \\([0-9.]+\\)" 2))
378 (mapc 'vc-file-clearprops files)) 379 (mapc 'vc-file-clearprops files))
@@ -385,7 +386,7 @@ its parents."
385 ;; if this was an explicit check-in (does not include creation of 386 ;; if this was an explicit check-in (does not include creation of
386 ;; a branch), remove the sticky tag. 387 ;; a branch), remove the sticky tag.
387 (if (and rev (not (vc-cvs-valid-symbolic-tag-name-p rev))) 388 (if (and rev (not (vc-cvs-valid-symbolic-tag-name-p rev)))
388 (vc-cvs-command nil 0 files "update" "-A")))) 389 (vc-cvs-command nil 0 files "update" "-A"))))
389 390
390(defun vc-cvs-find-revision (file rev buffer) 391(defun vc-cvs-find-revision (file rev buffer)
391 (apply 'vc-cvs-command 392 (apply 'vc-cvs-command