From ca1cf51aefca79e33c8c6f7af491b34239eb0226 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 27 Mar 2000 17:41:35 +0000 Subject: [PATCH] Rework the handling of cache synchronization; new design is much 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 | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/v7/src/edwin/vc.scm b/v7/src/edwin/vc.scm index 4f898a13a..86e37a7db 100644 --- a/v7/src/edwin/vc.scm +++ b/v7/src/edwin/vc.scm @@ -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 ") -- 2.25.1