diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-05-19 04:17:25 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-05-19 04:17:25 +0000 |
commit | 73777a9b14f042c516abc7fbd8789f38d6f1c225 (patch) | |
tree | b7c46c515fd4aef73d658532f08aa0807c278209 /usr.bin/cvs/entries.c | |
parent | 55ce8dc1ce848c42d7f8eab4ceab058a3286ec2d (diff) |
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
Diffstat (limited to 'usr.bin/cvs/entries.c')
-rw-r--r-- | usr.bin/cvs/entries.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 <jfb@openbsd.org> * 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]; |