diff options
| author | Stefan Monnier | 2003-01-14 21:53:39 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-01-14 21:53:39 +0000 |
| commit | 38fdf6aa0d801cf7aa1d595aa170c6ea09328bd0 (patch) | |
| tree | 6e4cf05d15bd35bfafe3edc48afd739b293a649c | |
| parent | 2a673b03505ac168c99e90ea86943cbb11c00553 (diff) | |
| download | emacs-38fdf6aa0d801cf7aa1d595aa170c6ea09328bd0.tar.gz emacs-38fdf6aa0d801cf7aa1d595aa170c6ea09328bd0.zip | |
(cvs-fileinfo-from-entries): Deal with Solaris'
occasional use of "05" rather than " 5" for day-of-month.
| -rw-r--r-- | lisp/pcvs-info.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/pcvs-info.el b/lisp/pcvs-info.el index 04368643e5b..2c78dd38f66 100644 --- a/lisp/pcvs-info.el +++ b/lisp/pcvs-info.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> | 5 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> |
| 6 | ;; Keywords: pcl-cvs | 6 | ;; Keywords: pcl-cvs |
| 7 | ;; Revision: $Id: pcvs-info.el,v 1.12 2002/06/18 23:03:55 monnier Exp $ | 7 | ;; Revision: $Id: pcvs-info.el,v 1.13 2002/09/11 01:56:47 rms Exp $ |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -452,8 +452,13 @@ DIR can also be a file." | |||
| 452 | ((equal date "Result of merge") (setq subtype 'MERGED)) | 452 | ((equal date "Result of merge") (setq subtype 'MERGED)) |
| 453 | ((let ((mtime (nth 5 (file-attributes (concat dir f)))) | 453 | ((let ((mtime (nth 5 (file-attributes (concat dir f)))) |
| 454 | (system-time-locale "C")) | 454 | (system-time-locale "C")) |
| 455 | (equal (setq timestamp (format-time-string "%c" mtime 'utc)) | 455 | (setq timestamp (format-time-string "%c" mtime 'utc)) |
| 456 | date)) | 456 | ;; Solaris sometimes uses "Wed Sep 05", not "Wed Sep 5". |
| 457 | ;; See "grep '[^a-z_]ctime' cvs/src/*.c" for reference. | ||
| 458 | (if (= (aref timestamp 8) ?0) | ||
| 459 | (setq timestamp (concat (substring timestamp 0 8) | ||
| 460 | " " (substring timestamp 9)))) | ||
| 461 | (equal timestamp date)) | ||
| 457 | (setq type (if all 'UP-TO-DATE))) | 462 | (setq type (if all 'UP-TO-DATE))) |
| 458 | ((equal date (concat "Result of merge+" timestamp)) | 463 | ((equal date (concat "Result of merge+" timestamp)) |
| 459 | (setq type 'CONFLICT))) | 464 | (setq type 'CONFLICT))) |