Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6c150da9
Commit
6c150da9
authored
Oct 11, 2002
by
Miles Bader
Browse files
(vc-cvs-parse-entry): Don't barf when an `Entries' files contains an
invalid timestamp.
parent
d77b70e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/vc-cvs.el
lisp/vc-cvs.el
+11
-11
No files found.
lisp/ChangeLog
View file @
6c150da9
2002-10-11 Miles Bader <miles@gnu.org>
* vc-cvs.el (vc-cvs-parse-entry): Don't barf when an `Entries'
files contains an invalid timestamp.
2002-10-11 Simon Josefsson <jas@extundo.com>
* mail/sendmail.el (mail-envelope-from): New option `header' to
...
...
lisp/vc-cvs.el
View file @
6c150da9
;;; vc-cvs.el --- non-resident support for CVS version-control
;; Copyright (C) 1995,98,99,2000,2001 Free Software Foundation, Inc.
;; Copyright (C) 1995,98,99,2000,2001
,2002
Free Software Foundation, Inc.
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
;; $Id: vc-cvs.el,v 1.4
6
2002/10/
09 15:59:39 rost
Exp $
;; $Id: vc-cvs.el,v 1.4
7
2002/10/
10 08:44:58 spiegel
Exp $
;; This file is part of GNU Emacs.
...
...
@@ -884,15 +884,15 @@ is non-nil."
;; compare checkout time and modification time
(let ((mtime (nth 5 (file-attributes file))))
(require 'parse-time)
(
cond ((equal m
time
(apply 'encode-time
(
parse-time
-string
(concat (match-string 2) "
+0000
"
)
))
)
(
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 ((parsed-
time
(parse-time-string (concat (match-string 2) "
+0000
"
)))
)
(
cond
((
and
(
car
parse
d
-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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment