summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-03-16 17:11:31 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-03-16 17:11:31 +0000
commite50a27ad82d19d68cc60eda00477acb2b2b7a5f3 (patch)
tree1a066f0640aeb888a6051b132c4d6532575838d2
parentc8a1e8969d40b002b8ef499ca0b7d42e83a16538 (diff)
error message fix; respect -q too. Ok ray@.
-rw-r--r--usr.bin/rcs/co.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c
index 3313b1d1f5c..8f132a70505 100644
--- a/usr.bin/rcs/co.c
+++ b/usr.bin/rcs/co.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: co.c,v 1.62 2006/03/16 04:04:57 ray Exp $ */
+/* $OpenBSD: co.c,v 1.63 2006/03/16 17:11:30 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -336,8 +336,9 @@ checkout_rev(RCSFILE *file, RCSNUM *frev, const char *dst, int flags,
if (flags & CO_LOCK) {
lcount++;
- if (lcount > 1)
- cvs_log(LP_WARN, "You now have %d locks.", lcount);
+ if ((verbose == 1) && (lcount > 1))
+ cvs_log(LP_WARN, "%s: warning: You now have %d locks.",
+ file->rf_path, lcount);
}
if ((pipeout == 0) && (stat(dst, &st) == 0) && !(flags & FORCE)) {