Mercurial > emacs
changeset 49237:9a2cb7cc7942
(cvs-fileinfo-from-entries): Deal with Solaris'
occasional use of "05" rather than " 5" for day-of-month.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 14 Jan 2003 21:53:39 +0000 |
parents | 8df2e5ef3962 |
children | 86973b914660 |
files | lisp/pcvs-info.el |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/pcvs-info.el Tue Jan 14 21:46:13 2003 +0000 +++ b/lisp/pcvs-info.el Tue Jan 14 21:53:39 2003 +0000 @@ -4,7 +4,7 @@ ;; Author: Stefan Monnier <monnier@cs.yale.edu> ;; Keywords: pcl-cvs -;; Revision: $Id: pcvs-info.el,v 1.12 2002/06/18 23:03:55 monnier Exp $ +;; Revision: $Id: pcvs-info.el,v 1.13 2002/09/11 01:56:47 rms Exp $ ;; This file is part of GNU Emacs. @@ -452,8 +452,13 @@ ((equal date "Result of merge") (setq subtype 'MERGED)) ((let ((mtime (nth 5 (file-attributes (concat dir f)))) (system-time-locale "C")) - (equal (setq timestamp (format-time-string "%c" mtime 'utc)) - date)) + (setq timestamp (format-time-string "%c" mtime 'utc)) + ;; Solaris sometimes uses "Wed Sep 05", not "Wed Sep 5". + ;; See "grep '[^a-z_]ctime' cvs/src/*.c" for reference. + (if (= (aref timestamp 8) ?0) + (setq timestamp (concat (substring timestamp 0 8) + " " (substring timestamp 9)))) + (equal timestamp date)) (setq type (if all 'UP-TO-DATE))) ((equal date (concat "Result of merge+" timestamp)) (setq type 'CONFLICT)))