=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/status.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- src/usr.bin/cvs/status.c 2005/07/07 15:52:26 1.34 +++ src/usr.bin/cvs/status.c 2005/07/08 07:22:58 1.35 @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.34 2005/07/07 15:52:26 joris Exp $ */ +/* $OpenBSD: status.c,v 1.35 2005/07/08 07:22:58 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -179,7 +179,9 @@ cvs_status_local(CVSFILE *cf, void *arg) { int len; - char buf[MAXNAMLEN], fpath[MAXPATHLEN], numbuf[64], rcspath[MAXPATHLEN]; + size_t n; + char buf[MAXNAMLEN], fpath[MAXPATHLEN], rcspath[MAXPATHLEN]; + char numbuf[64], timebuf[32]; char *repo; RCSFILE *rf; struct cvsroot *root; @@ -223,6 +225,18 @@ } else { len = snprintf(buf, sizeof(buf), "%s", rcsnum_tostr(cf->cf_lrev, buf, sizeof(buf))); + + /* Display etime in local mode only. */ + if (cvs_cmdop != CVS_OP_SERVER) { + strlcat(buf, "\t", sizeof(buf)); + + ctime_r(&(cf->cf_etime), timebuf); + n = strlen(timebuf); + if ((n > 0) && (timebuf[n - 1] == '\n')) + timebuf[--n] = '\0'; + + strlcat(buf, timebuf, sizeof(buf)); + } } if (len == -1 || len >= (int)sizeof(buf)) {