In VC-Dired buffer, don't prompt for comment string unless one is
authorChris Hanson <org/chris-hanson/cph>
Fri, 31 Mar 2000 19:22:27 +0000 (19:22 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 31 Mar 2000 19:22:27 +0000 (19:22 +0000)
needed.

v7/src/edwin/vc.scm

index 4de7607dd878840fce00ece3646e76942a226113..158045390cee3a206945bf47310742c5669cd22d 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: vc.scm,v 1.52 2000/03/31 19:20:54 cph Exp $
+;;; $Id: vc.scm,v 1.53 2000/03/31 19:22:27 cph Exp $
 ;;;
 ;;; Copyright (c) 1994-2000 Massachusetts Institute of Technology
 ;;;
@@ -524,7 +524,7 @@ merge in the changes into your working copy."
                          (message (buffer-name buffer) " is up to date.")))))
                ((NEEDS-CHECKOUT NEEDS-MERGE)
                 (vc-next-action-merge master from-dired?))
-               ((LOCALLY-MODIFIED LOCALLY-ADDED)
+               ((LOCALLY-MODIFIED LOCALLY-ADDED LOCALLY-REMOVED)
                 (do-checkin))
                ((UNRESOLVED-CONFLICT)
                 (message (->namestring workfile)
@@ -551,13 +551,13 @@ merge in the changes into your working copy."
             (and (there-exists? files
                    (lambda (file)
                      (let ((master (file-vc-master file #f)))
-                       (and master
-                            (if (eq? vc-type:cvs (vc-master-type master))
-                                (memq (cvs-status master)
-                                      '(LOCALLY-MODIFIED
-                                        LOCALLY-ADDED
-                                        LOCALLY-REMOVED))
-                                (vc-backend-locking-user master #f))))))
+                       (or (not master)
+                           (if (eq? vc-type:cvs (vc-master-type master))
+                               (memq (cvs-status master)
+                                     '(LOCALLY-MODIFIED
+                                       LOCALLY-ADDED
+                                       LOCALLY-REMOVED))
+                               (vc-backend-locking-user master #f))))))
                  "")
             #f
             (lambda (comment)