=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/entries.c,v retrieving revision 1.46 retrieving revision 1.47 diff -c -r1.46 -r1.47 *** src/usr.bin/cvs/entries.c 2005/08/19 08:48:30 1.46 --- src/usr.bin/cvs/entries.c 2005/08/22 08:53:12 1.47 *************** *** 1,4 **** ! /* $OpenBSD: entries.c,v 1.46 2005/08/19 08:48:30 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: entries.c,v 1.47 2005/08/22 08:53:12 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 447,457 **** revbuf[0] = '\0'; } else { rcsnum_tostr(ent->ce_rev, revbuf, sizeof(revbuf)); ! if (ent->ce_mtime == CVS_DATE_DMSEC || ent->ce_status == CVS_ENT_REMOVED) strlcpy(timebuf, CVS_DATE_DUMMY, sizeof(timebuf)); ! else { ctime_r(&(ent->ce_mtime), timebuf); len = strlen(timebuf); if ((len > 0) && (timebuf[len - 1] == '\n')) --- 447,461 ---- revbuf[0] = '\0'; } else { rcsnum_tostr(ent->ce_rev, revbuf, sizeof(revbuf)); ! if ((ent->ce_mtime == CVS_DATE_DMSEC && ! (ent->ce_status != CVS_ENT_ADDED)) || ent->ce_status == CVS_ENT_REMOVED) strlcpy(timebuf, CVS_DATE_DUMMY, sizeof(timebuf)); ! else if (ent->ce_status == CVS_ENT_ADDED) { ! strlcpy(timebuf, "Initial ", sizeof(timebuf)); ! strlcat(timebuf, ent->ce_name, sizeof(timebuf)); ! } else { ctime_r(&(ent->ce_mtime), timebuf); len = strlen(timebuf); if ((len > 0) && (timebuf[len - 1] == '\n'))