aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc-cvs.el25
2 files changed, 18 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 15010688aac..b759ade1458 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12003-10-01 Dave Love <fx@gnu.org>
2
3 * vc-cvs.el (vc-cvs-parse-entry): Revert last change to allow
4 bootstrap.
5
12003-09-30 Richard M. Stallman <rms@gnu.org> 62003-09-30 Richard M. Stallman <rms@gnu.org>
2 7
3 * dired.el (dired-mode): Handle dired-directory as a list. 8 * dired.el (dired-mode): Handle dired-directory as a list.
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index cdbd225412c..048cb6ccfb4 100644
--- a/lisp/vc-cvs.el
+++ b/lisp/vc-cvs.el
@@ -5,7 +5,7 @@
5;; Author: FSF (see vc.el for full credits) 5;; Author: FSF (see vc.el for full credits)
6;; Maintainer: Andre Spiegel <spiegel@gnu.org> 6;; Maintainer: Andre Spiegel <spiegel@gnu.org>
7 7
8;; $Id: vc-cvs.el,v 1.64 2003/09/24 11:55:45 spiegel Exp $ 8;; $Id$
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -927,17 +927,18 @@ is non-nil."
927 ;; This is intentionally different from the algorithm that CVS uses 927 ;; This is intentionally different from the algorithm that CVS uses
928 ;; (which is based on textual comparison), because there can be problems 928 ;; (which is based on textual comparison), because there can be problems
929 ;; generating a time string that looks exactly like the one from CVS. 929 ;; generating a time string that looks exactly like the one from CVS.
930 (let ((mtime (nth 5 (file-attributes file))) 930 (let ((mtime (nth 5 (file-attributes file))))
931 (parsed-time 931 (require 'parse-time)
932 (parse-time-string (concat (match-string 2) " +0000")))) 932 (let ((parsed-time
933 (cond ((and (not (string-match "\\+" (match-string 2))) 933 (parse-time-string (concat (match-string 2) " +0000"))))
934 (car parsed-time) 934 (cond ((and (not (string-match "\\+" (match-string 2)))
935 (equal mtime (apply 'encode-time parsed-time))) 935 (car parsed-time)
936 (vc-file-setprop file 'vc-checkout-time mtime) 936 (equal mtime (apply 'encode-time parsed-time)))
937 (if set-state (vc-file-setprop file 'vc-state 'up-to-date))) 937 (vc-file-setprop file 'vc-checkout-time mtime)
938 (t 938 (if set-state (vc-file-setprop file 'vc-state 'up-to-date)))
939 (vc-file-setprop file 'vc-checkout-time 0) 939 (t
940 (if set-state (vc-file-setprop file 'vc-state 'edited)))))))) 940 (vc-file-setprop file 'vc-checkout-time 0)
941 (if set-state (vc-file-setprop file 'vc-state 'edited)))))))))
941 942
942(provide 'vc-cvs) 943(provide 'vc-cvs)
943 944