aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Spiegel1995-09-14 07:23:43 +0000
committerAndré Spiegel1995-09-14 07:23:43 +0000
commit719dcee97be039c172f09635de2392cdf8834200 (patch)
tree61b9aff3741cc88bbe119fcac911241da8e0fad0
parentac1ce3411f3021a3837d7c9f40fb3609816c2f83 (diff)
downloademacs-719dcee97be039c172f09635de2392cdf8834200.tar.gz
emacs-719dcee97be039c172f09635de2392cdf8834200.zip
(vc-fetch-master-properties): Call "cvs status" in the right
directory, passing only the nondirectory part of the file name. (vc-find-cvs-master): Bind `mtime' locally instead of using it as a free variable.
-rw-r--r--lisp/vc-hooks.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 1e4db196e84..a17e2617840 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -311,7 +311,11 @@ value of this flag.")
311 311
312 ((eq (vc-backend file) 'CVS) 312 ((eq (vc-backend file) 'CVS)
313 (save-excursion 313 (save-excursion
314 (vc-simple-command 0 "cvs" file "status") 314 ;; Call "cvs status" in the right directory, passing only the
315 ;; nondirectory part of the file name -- otherwise CVS might
316 ;; silently give a wrong result.
317 (let ((default-directory (file-name-directory file)))
318 (vc-simple-command 0 "cvs" (file-name-nondirectory file) "status"))
315 (set-buffer (get-buffer "*vc-info*")) 319 (set-buffer (get-buffer "*vc-info*"))
316 (vc-parse-buffer 320 (vc-parse-buffer
317 ;; CVS 1.3 says "RCS Version:", other releases "RCS Revision:", 321 ;; CVS 1.3 says "RCS Version:", other releases "RCS Revision:",
@@ -778,10 +782,10 @@ For CVS, the full name of CVS/Entries is returned."
778 (match-string 1)) 782 (match-string 1))
779 ;; If the file hasn't been modified since checkout, 783 ;; If the file hasn't been modified since checkout,
780 ;; store the checkout-time. 784 ;; store the checkout-time.
781 (setq mtime (nth 5 (file-attributes file))) 785 (let ((mtime (nth 5 (file-attributes file))))
782 (if (string= (match-string 2) (vc-utc-string mtime)) 786 (if (string= (match-string 2) (vc-utc-string mtime))
783 (vc-file-setprop file 'vc-checkout-time mtime) 787 (vc-file-setprop file 'vc-checkout-time mtime)
784 (vc-file-setprop file 'vc-checkout-time 0)) 788 (vc-file-setprop file 'vc-checkout-time 0)))
785 (throw 'found (cons (concat dirname "CVS/Entries") 'CVS))) 789 (throw 'found (cons (concat dirname "CVS/Entries") 'CVS)))
786 (t (setq case-fold-search fold) ;; restore the old value 790 (t (setq case-fold-search fold) ;; restore the old value
787 nil))) 791 nil)))