Rework the handling of cache synchronization; new design is much
authorChris Hanson <org/chris-hanson/cph>
Mon, 27 Mar 2000 17:41:35 +0000 (17:41 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 27 Mar 2000 17:41:35 +0000 (17:41 +0000)
simpler and less prone to errors.  Add messages to the handful of CVS
commands that were missing them.  Fix a few minor bugs.

v7/src/edwin/vc.scm

index 4f898a13a4339e54ad5e54215b2959d7d5c95976..86e37a7dbb9af4701223f09c95745eb314ab09fc 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: vc.scm,v 1.40 2000/03/27 17:37:53 cph Exp $
+;;; $Id: vc.scm,v 1.41 2000/03/27 17:41:35 cph Exp $
 ;;;
 ;;; Copyright (c) 1994-2000 Massachusetts Institute of Technology
 ;;;
@@ -680,7 +680,7 @@ files in or below it."
   (if (and (not rev1) (not rev2))
       (cache-value-2! master 'MODIFIED?
                      (vc-master-pathname master)
-                     (vc-workfile-pathname master)
+                     (vc-master-workfile master)
                      (lambda () (vc-backend-diff master rev1 rev2 #f)))
       (vc-backend-diff master rev1 rev2 #f)))
 
@@ -1511,8 +1511,7 @@ the value of vc-log-mode-hook."
                                     (cvs-rev-switch revision)
                                     (vc-master-workfile master)
                                     ">"
-                                    workfile)
-              (cvs-checkout-to-file master revision workfile))))
+                                    workfile))))
          (revision
           ;; Checkout only necessary for given revision.
           (with-vc-command-message master "Checking out"
@@ -1556,9 +1555,9 @@ the value of vc-log-mode-hook."
   (lambda (master)
     (with-vc-command-message master "Reverting"
       (lambda ()
-       (delete-file-no-errors workfile)
-       (vc-run-command master '() "cvs" "update"
-                       (vc-master-workfile master))))))
+       (let ((workfile (vc-master-workfile master)))
+         (delete-file-no-errors workfile)
+         (vc-run-command master '() "cvs" "update" workfile))))))
 
 (define-vc-type-operation 'STEAL vc-type:cvs
   (lambda (master revision)
@@ -1621,10 +1620,7 @@ the value of vc-log-mode-hook."
          (cond ((re-search-forward
                  (string-append "^\\([CMUP]\\) " fn)
                  (buffer-start buffer))
-                (let ((conflicts?
-                       (char=? #\C (extract-right-char (re-match-start 0)))))
-                  (message msg "done")
-                  conflicts?))
+                (char=? #\C (extract-right-char (re-match-start 0))))
                ((re-search-forward
                  (string-append fn
                                 " already contains the differences between ")