diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-10-22 17:23:22 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-10-22 17:23:22 +0000 |
commit | 507840a892753fe4ed5a99c4f0105d29e2bea00a (patch) | |
tree | b8cdab2c2b931b797c322a68d0ca6ebc127d801f /usr.bin/cvs/entries.c | |
parent | 223092558dc55fb5579e72e7482c62152b805696 (diff) |
- don't check for admin files when running init;
- don't pass the Entry for newly added files to cvs_date_parse()
- in rcs_rev_add don't bother looking for the previous rev if we
are creating the RCS file.
from PR 4575
Diffstat (limited to 'usr.bin/cvs/entries.c')
-rw-r--r-- | usr.bin/cvs/entries.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c index 8966fc26b1e..7c959c0ecea 100644 --- a/usr.bin/cvs/entries.c +++ b/usr.bin/cvs/entries.c @@ -1,4 +1,4 @@ -/* $OpenBSD: entries.c,v 1.49 2005/09/06 17:08:05 xsa Exp $ */ +/* $OpenBSD: entries.c,v 1.50 2005/10/22 17:23:21 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -392,7 +392,8 @@ cvs_ent_parse(const char *entry) if (!strcmp(fields[3], "up to date")) ent->ce_status = CVS_ENT_UPTODATE; } else { - if (strcmp(fields[3], CVS_DATE_DUMMY) == 0) + if ((strcmp(fields[3], CVS_DATE_DUMMY) == 0) || + (strncmp(fields[3], "Initial ", 8) == 0)) ent->ce_mtime = CVS_DATE_DMSEC; else ent->ce_mtime = cvs_date_parse(fields[3]); |