diff options
| author | Richard M. Stallman | 1999-09-06 03:46:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-09-06 03:46:33 +0000 |
| commit | fc1d66a4d7ff63f58d2572a2151bb028db096bc6 (patch) | |
| tree | 30175c3f812851393029020be4cc503fcc39694e | |
| parent | 8601c0dadc0df3d952bb9901d899245d84add89c (diff) | |
| download | emacs-fc1d66a4d7ff63f58d2572a2151bb028db096bc6.tar.gz emacs-fc1d66a4d7ff63f58d2572a2151bb028db096bc6.zip | |
(vc-annotate-display): Treat 2-digit years under 70 as 20YY.
| -rw-r--r-- | lisp/vc.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 5d5bccbd752..f7bc5029361 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> | 5 | ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> |
| 6 | ;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de> | 6 | ;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de> |
| 7 | 7 | ||
| 8 | ;; $Id: vc.el,v 1.251 1999/08/27 07:59:22 schwab Exp eliz $ | 8 | ;; $Id: vc.el,v 1.252 1999/09/02 12:50:28 eliz Exp rms $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -2474,7 +2474,12 @@ THRESHOLD, nil otherwise" | |||
| 2474 | (day (string-to-number (match-string 1))) | 2474 | (day (string-to-number (match-string 1))) |
| 2475 | (month (cdr (assoc (match-string 2) local-month-numbers))) | 2475 | (month (cdr (assoc (match-string 2) local-month-numbers))) |
| 2476 | (year-tmp (string-to-number (match-string 3))) | 2476 | (year-tmp (string-to-number (match-string 3))) |
| 2477 | (year (+ (if (> 100 year-tmp) 1900 0) year-tmp)) ; Possible millenium problem | 2477 | ;; Years 0..69 are 2000..2069. |
| 2478 | ;; Years 70..99 are 1970..1999. | ||
| 2479 | (year (+ (cond ((> 70 year-tmp) 2000) | ||
| 2480 | ((> 100 year-tmp) 1900) | ||
| 2481 | (t 0)) | ||
| 2482 | year-tmp)) | ||
| 2478 | (high (- (car (current-time)) | 2483 | (high (- (car (current-time)) |
| 2479 | (car (encode-time 0 0 0 day month year)))) | 2484 | (car (encode-time 0 0 0 day month year)))) |
| 2480 | (color (cond ((vc-annotate-compcar high (cond (color-map) | 2485 | (color (cond ((vc-annotate-compcar high (cond (color-map) |