summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2007-07-16 12:16:02 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2007-07-16 12:16:02 +0000
commitc1b9a23d760ce2fa2dd4ee9d1e8fe82b16219ac6 (patch)
tree9af8f3a4578bbaf7433643737acfe9e971a316a7
parent018b0cd964ad0da4016f0606007e9d6f4b193e58 (diff)
Do not display the `Working file:' line if the issued command is `rlog'.
Matches GNU's behaviour. OK joris@.
-rw-r--r--usr.bin/cvs/getlog.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/cvs/getlog.c b/usr.bin/cvs/getlog.c
index 153551d431a..b44a4738333 100644
--- a/usr.bin/cvs/getlog.c
+++ b/usr.bin/cvs/getlog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getlog.c,v 1.73 2007/06/28 21:38:09 xsa Exp $ */
+/* $OpenBSD: getlog.c,v 1.74 2007/07/16 12:16:01 xsa Exp $ */
/*
* Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org>
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
@@ -201,7 +201,10 @@ cvs_log_local(struct cvs_file *cf)
}
cvs_printf("\nRCS file: %s", cf->file_rpath);
- cvs_printf("\nWorking file: %s", cf->file_path);
+
+ if (cvs_cmdop != CVS_OP_RLOG)
+ cvs_printf("\nWorking file: %s", cf->file_path);
+
cvs_printf("\nhead:");
if (cf->file_rcs->rf_head != NULL)
cvs_printf(" %s", rcsnum_tostr(cf->file_rcs->rf_head,