=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/co.c,v retrieving revision 1.124 retrieving revision 1.125 diff -u -r1.124 -r1.125 --- src/usr.bin/rcs/co.c 2019/01/09 18:00:45 1.124 +++ src/usr.bin/rcs/co.c 2019/04/26 19:11:01 1.125 @@ -1,4 +1,4 @@ -/* $OpenBSD: co.c,v 1.124 2019/01/09 18:00:45 joris Exp $ */ +/* $OpenBSD: co.c,v 1.125 2019/04/26 19:11:01 millert Exp $ */ /* * Copyright (c) 2005 Joris Vink * All rights reserved. @@ -394,6 +394,12 @@ !(flags & CO_REVERT)) (void)fprintf(stderr, " (unlocked)\n"); } + } else { + if (file->rf_ndelta != 0) { + if (!(flags & QUIET) && !(flags & NEWFILE) && + !(flags & CO_REVERT)) + (void)fprintf(stderr, "\n"); + } } if ((flags & (PIPEOUT|FORCE)) == 0 && stat(dst, &st) != -1) { @@ -444,11 +450,6 @@ ((flags & CO_LOCK) || (flags & CO_UNLOCK))) { (void)fprintf(stderr, "no revisions, so nothing can be %s\n", (flags & CO_LOCK) ? "locked" : "unlocked"); - } else if (file->rf_ndelta != 0) { - /* XXX - Not a good way to detect if a newline is needed. */ - if (!(flags & QUIET) && !(flags & NEWFILE) && - !(flags & CO_REVERT)) - (void)fprintf(stderr, "\n"); } if (flags & CO_LOCK) {