aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2002-10-11 06:49:49 +0000
committerMiles Bader2002-10-11 06:49:49 +0000
commit6c150da9f5f6353dc8cc92df81989b7d5325dcd4 (patch)
tree0f09b9ba49b9ecbd8eb2a4fad28c615ce0e96cbd
parentd77b70e5578f89e541859203b059cd36c3de6f31 (diff)
downloademacs-6c150da9f5f6353dc8cc92df81989b7d5325dcd4.tar.gz
emacs-6c150da9f5f6353dc8cc92df81989b7d5325dcd4.zip
(vc-cvs-parse-entry): Don't barf when an `Entries' files contains an
invalid timestamp.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc-cvs.el22
2 files changed, 16 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7aff48aa8e6..91f9cbb3e47 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12002-10-11 Miles Bader <miles@gnu.org>
2
3 * vc-cvs.el (vc-cvs-parse-entry): Don't barf when an `Entries'
4 files contains an invalid timestamp.
5
12002-10-11 Simon Josefsson <jas@extundo.com> 62002-10-11 Simon Josefsson <jas@extundo.com>
2 7
3 * mail/sendmail.el (mail-envelope-from): New option `header' to 8 * mail/sendmail.el (mail-envelope-from): New option `header' to
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index f9d41452133..f9059a9ce48 100644
--- a/lisp/vc-cvs.el
+++ b/lisp/vc-cvs.el
@@ -1,11 +1,11 @@
1;;; vc-cvs.el --- non-resident support for CVS version-control 1;;; vc-cvs.el --- non-resident support for CVS version-control
2 2
3;; Copyright (C) 1995,98,99,2000,2001 Free Software Foundation, Inc. 3;; Copyright (C) 1995,98,99,2000,2001,2002 Free Software Foundation, Inc.
4 4
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.46 2002/10/09 15:59:39 rost Exp $ 8;; $Id: vc-cvs.el,v 1.47 2002/10/10 08:44:58 spiegel Exp $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -884,15 +884,15 @@ is non-nil."
884 ;; compare checkout time and modification time 884 ;; compare checkout time and modification time
885 (let ((mtime (nth 5 (file-attributes file)))) 885 (let ((mtime (nth 5 (file-attributes file))))
886 (require 'parse-time) 886 (require 'parse-time)
887 (cond ((equal mtime 887 (let ((parsed-time
888 (apply 'encode-time 888 (parse-time-string (concat (match-string 2) " +0000"))))
889 (parse-time-string 889 (cond ((and (car parsed-time)
890 (concat (match-string 2) " +0000")))) 890 (equal mtime (apply 'encode-time parsed-time)))
891 (vc-file-setprop file 'vc-checkout-time mtime) 891 (vc-file-setprop file 'vc-checkout-time mtime)
892 (if set-state (vc-file-setprop file 'vc-state 'up-to-date))) 892 (if set-state (vc-file-setprop file 'vc-state 'up-to-date)))
893 (t 893 (t
894 (vc-file-setprop file 'vc-checkout-time 0) 894 (vc-file-setprop file 'vc-checkout-time 0)
895 (if set-state (vc-file-setprop file 'vc-state 'edited)))))))) 895 (if set-state (vc-file-setprop file 'vc-state 'edited)))))))))
896 896
897(provide 'vc-cvs) 897(provide 'vc-cvs)
898 898