summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-10-24 16:14:16 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-10-24 16:14:16 +0000
commit913e961fb52145dbc9c712e56e7e2e53a8139082 (patch)
treef4fbf941ddb9c5ee39988ed62cd478a49cd96608 /usr.bin
parent25bc43ac3216f45af2d518102b2a55060b597905 (diff)
output tweaks;
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rcs/rlog.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/rcs/rlog.c b/usr.bin/rcs/rlog.c
index 8e312db9c15..26c9433886f 100644
--- a/usr.bin/rcs/rlog.c
+++ b/usr.bin/rcs/rlog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rlog.c,v 1.5 2005/10/13 12:35:30 joris Exp $ */
+/* $OpenBSD: rlog.c,v 1.6 2005/10/24 16:14:15 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -42,7 +42,7 @@ static int rlog_file(const char *, const char *, RCSFILE *);
#define REVSEP "----------------------------"
#define REVEND \
- "============================================================================"
+ "============================================================================="
static int hflag;
static int tflag;
@@ -91,6 +91,9 @@ rlog_main(int argc, char **argv)
exit(1);
}
+ if ((hflag == 1) && (tflag == 1))
+ cvs_log(LP_WARN, "warning: -t overrides -h.");
+
for (i = 0; i < argc; i++) {
if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0)
continue;
@@ -121,7 +124,7 @@ rlog_file(const char *fname, const char *fpath, RCSFILE *file)
struct rcs_delta *rdp;
struct rcs_access *acp;
- printf("Working file: %s", fname);
+ printf("\nWorking file: %s", fname);
printf("\nhead:");
if (file->rf_head != NULL)
printf(" %s", rcsnum_tostr(file->rf_head, numb, sizeof(numb)));
@@ -151,7 +154,7 @@ rlog_file(const char *fname, const char *fpath, RCSFILE *file)
printf("total revisions: %u\n", file->rf_ndelta);
if ((hflag == 0) || (tflag == 1))
- printf("description: %s\n", file->rf_desc);
+ printf("description:\n%s", file->rf_desc);
if ((hflag == 0) && (tflag == 0)) {
TAILQ_FOREACH(rdp, &(file->rf_delta), rd_list) {