=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/rcs.c,v retrieving revision 1.210 retrieving revision 1.211 diff -c -r1.210 -r1.211 *** src/usr.bin/cvs/rcs.c 2007/02/22 06:42:09 1.210 --- src/usr.bin/cvs/rcs.c 2007/05/26 20:58:36 1.211 *************** *** 1,4 **** ! /* $OpenBSD: rcs.c,v 1.210 2007/02/22 06:42:09 otto Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: rcs.c,v 1.211 2007/05/26 20:58:36 niallo Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 175,180 **** --- 175,181 ---- { "Revision", RCS_KW_REVISION }, { "Source", RCS_KW_SOURCE }, { "State", RCS_KW_STATE }, + { "Mdocdate", RCS_KW_MDOCDATE }, }; #define NB_COMTYPES (sizeof(rcs_comments)/sizeof(rcs_comments[0])) *************** *** 2982,2988 **** if (kwtype & RCS_KW_DATE) { fmt = "%Y/%m/%d %H:%M:%S "; ! strftime(buf, sizeof(buf), fmt, &rdp->rd_date); if (strlcat(expbuf, buf, sizeof(expbuf)) >= sizeof(expbuf)) fatal("rcs_kwexp_line: string truncated"); } --- 2983,2999 ---- if (kwtype & RCS_KW_DATE) { fmt = "%Y/%m/%d %H:%M:%S "; ! if (strftime(buf, sizeof(buf), fmt, &rdp->rd_date) == 0) ! fatal("rcs_kwexp_line: strftime failure"); ! if (strlcat(expbuf, buf, sizeof(expbuf)) >= sizeof(expbuf)) ! fatal("rcs_kwexp_line: string truncated"); ! } ! ! if (kwtype & RCS_KW_MDOCDATE) { ! fmt = "%B %e %Y "; ! ! if (strftime(buf, sizeof(buf), fmt, &rdp->rd_date) == 0) ! fatal("rcs_kwexp_line: strftime failure"); if (strlcat(expbuf, buf, sizeof(expbuf)) >= sizeof(expbuf)) fatal("rcs_kwexp_line: string truncated"); }