From 73777a9b14f042c516abc7fbd8789f38d6f1c225 Mon Sep 17 00:00:00 2001 From: Jean-Francois Brousseau Date: Thu, 19 May 2005 04:17:25 +0000 Subject: use the date parsing code from date.y and fix timestamps on newly created files so they match the values found in the corresponding entries, otherwise all files appear as modified ok joris --- usr.bin/cvs/entries.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.bin/cvs/entries.c') diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c index cf8350682d5..8deb047ecae 100644 --- a/usr.bin/cvs/entries.c +++ b/usr.bin/cvs/entries.c @@ -1,4 +1,4 @@ -/* $OpenBSD: entries.c,v 1.27 2005/04/22 15:16:15 joris Exp $ */ +/* $OpenBSD: entries.c,v 1.28 2005/05/19 04:17:24 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -380,8 +380,7 @@ cvs_ent_parse(const char *entry) if (strcmp(fields[3], CVS_DATE_DUMMY) == 0) entp->ce_mtime = CVS_DATE_DMSEC; else - entp->ce_mtime = cvs_datesec(fields[3], - CVS_DATE_CTIME, 0); + entp->ce_mtime = cvs_date_parse(fields[3]); entp->ce_opts = fields[4]; entp->ce_tag = fields[5]; -- cgit v1.2.3