#| -*-Scheme-*-
-$Id: edwin.pkg,v 1.282 2002/11/20 19:45:59 cph Exp $
+$Id: edwin.pkg,v 1.283 2002/12/09 06:04:58 cph Exp $
Copyright (c) 1989-2002 Massachusetts Institute of Technology
edwin-variable$vc-checkin-hooks
edwin-variable$vc-checkout-carefully
edwin-variable$vc-command-messages
+ edwin-variable$vc-cvs-stay-local
edwin-variable$vc-default-init-version
edwin-variable$vc-delete-logbuf-window
edwin-variable$vc-display-status
;;; -*-Scheme-*-
;;;
-;;; $Id: vc.scm,v 1.80 2002/11/20 19:46:04 cph Exp $
+;;; $Id: vc.scm,v 1.81 2002/12/09 06:04:43 cph Exp $
;;;
-;;; Copyright (c) 1994-2001 Massachusetts Institute of Technology
+;;; Copyright (c) 1994-2002 Massachusetts Institute of Technology
;;;
;;; This file is part of MIT Scheme.
;;;
Otherwise, the mod time of the file is the checkout time."
#t
boolean?)
+
+(define-variable vc-cvs-stay-local
+ "If true, use only the CVS timestamp to tell if a file has been modified.
+Otherwise, VC will compare the file to the copy in the repository."
+ #t
+ boolean?)
\f
;;;; VC-TYPE datatype
#f)
((cvs-master? master)
(and (vc-workfile-modified? master)
- (case (cvs-status master)
- ((LOCALLY-MODIFIED) "modified")
- ((LOCALLY-ADDED) "added")
- ((NEEDS-CHECKOUT) "patch")
- ((NEEDS-MERGE) "merge")
- ((UNRESOLVED-CONFLICT) "conflict")
- (else #f))))
+ (if (vc-cvs-stay-local? master)
+ "modified"
+ (case (cvs-status master)
+ ((LOCALLY-MODIFIED) "modified")
+ ((LOCALLY-ADDED) "added")
+ ((NEEDS-CHECKOUT) "patch")
+ ((NEEDS-MERGE) "merge")
+ ((UNRESOLVED-CONFLICT) "conflict")
+ (else #f)))))
(else
(vc-backend-locking-user master #f))))))
(if (or status all-files?)
(and ts
(string=? ts (file-time->global-ctime-string tw)))))
#f
- (let ((modified? (vc-backend-diff master #f #f #t)))
- (set-vc-cvs-workfile-mtime-string! master tm tw modified?)
- modified?))
+ (or (vc-cvs-stay-local? master)
+ (let ((modified? (vc-backend-diff master #f #f #t)))
+ (set-vc-cvs-workfile-mtime-string! master tm tw modified?)
+ modified?)))
(vc-backend-diff master #f #f #t)))))
+(define (vc-cvs-stay-local? master)
+ (ref-variable vc-cvs-stay-local (vc-workfile-buffer master #f)))
+
(define (vc-cvs-workfile-mtime-string master)
(read-cached-value-2 master 'CVS-MTIME-STRING
(vc-master-pathname master)