]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-cvs-parse-entry): Revert last change to allow
authorDave Love <fx@gnu.org>
Wed, 1 Oct 2003 13:23:34 +0000 (13:23 +0000)
committerDave Love <fx@gnu.org>
Wed, 1 Oct 2003 13:23:34 +0000 (13:23 +0000)
bootstrap.

lisp/ChangeLog
lisp/vc-cvs.el

index 15010688aacff52a6838a8e7eab15c05341fe5eb..b759ade14583cd9dce90f7060a0fe5586ef98c18 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-01  Dave Love  <fx@gnu.org>
+
+       * vc-cvs.el (vc-cvs-parse-entry): Revert last change to allow
+       bootstrap.
+
 2003-09-30  Richard M. Stallman  <rms@gnu.org>
 
        * dired.el (dired-mode): Handle dired-directory as a list.
index cdbd225412c57210c7321e32d5569fb408010d6e..048cb6ccfb4d01f9bb274282e38408ec953863bf 100644 (file)
@@ -5,7 +5,7 @@
 ;; Author:      FSF (see vc.el for full credits)
 ;; Maintainer:  Andre Spiegel <spiegel@gnu.org>
 
-;; $Id: vc-cvs.el,v 1.64 2003/09/24 11:55:45 spiegel Exp $
+;; $Id$
 
 ;; This file is part of GNU Emacs.
 
@@ -927,17 +927,18 @@ is non-nil."
     ;; This is intentionally different from the algorithm that CVS uses
     ;; (which is based on textual comparison), because there can be problems
     ;; generating a time string that looks exactly like the one from CVS.
-    (let ((mtime (nth 5 (file-attributes file)))
-          (parsed-time
-           (parse-time-string (concat (match-string 2) " +0000"))))
-      (cond ((and (not (string-match "\\+" (match-string 2)))
-                  (car parsed-time)
-                  (equal mtime (apply 'encode-time parsed-time)))
-             (vc-file-setprop file 'vc-checkout-time mtime)
-             (if set-state (vc-file-setprop file 'vc-state 'up-to-date)))
-            (t
-             (vc-file-setprop file 'vc-checkout-time 0)
-             (if set-state (vc-file-setprop file 'vc-state 'edited))))))))
+    (let ((mtime (nth 5 (file-attributes file))))
+      (require 'parse-time)
+      (let ((parsed-time
+            (parse-time-string (concat (match-string 2) " +0000"))))
+       (cond ((and (not (string-match "\\+" (match-string 2)))
+                   (car parsed-time)
+                   (equal mtime (apply 'encode-time parsed-time)))
+              (vc-file-setprop file 'vc-checkout-time mtime)
+              (if set-state (vc-file-setprop file 'vc-state 'up-to-date)))
+             (t
+              (vc-file-setprop file 'vc-checkout-time 0)
+              (if set-state (vc-file-setprop file 'vc-state 'edited)))))))))
 
 (provide 'vc-cvs)