summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/ci.c
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2006-04-09 19:22:24 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2006-04-09 19:22:24 +0000
commit71391ecdb1eaef676c59a01afb8a36750ea4aaf9 (patch)
tree3ee1ab3e806098eccff5d5f4469454ef6f6ea529 /usr.bin/rcs/ci.c
parent1a68436b5d30a85df68e7620b26b07a80530bb5e (diff)
- don't print out warnings about locking when they are actually wrong and
just confuse the user. ok and input joris@
Diffstat (limited to 'usr.bin/rcs/ci.c')
-rw-r--r--usr.bin/rcs/ci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c
index 99228bdaba2..04ed168af9a 100644
--- a/usr.bin/rcs/ci.c
+++ b/usr.bin/rcs/ci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ci.c,v 1.136 2006/04/06 10:13:00 xsa Exp $ */
+/* $OpenBSD: ci.c,v 1.137 2006/04/09 19:22:23 niallo Exp $ */
/*
* Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org>
* All rights reserved.
@@ -819,6 +819,7 @@ checkin_revert(struct checkin_params *pb)
cvs_log(LP_WARN,
"file is unchanged; reverting to previous revision %s",
rbuf);
+ pb->flags |= CO_REVERT;
(void)unlink(pb->filename);
if ((pb->flags & CO_LOCK) || (pb->flags & CO_UNLOCK))
checkout_rev(pb->file, pb->frev, pb->filename,