From d3ded228a54f70bc11a648d8a8406e615665106f Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Fri, 12 Sep 2008 13:38:36 +0000 Subject: Move the revision selection in front of output, so errors won't mix up with output. Matches GNU cvs. --- usr.bin/cvs/getlog.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/cvs/getlog.c b/usr.bin/cvs/getlog.c index b64a58c964b..3f4cc05459b 100644 --- a/usr.bin/cvs/getlog.c +++ b/usr.bin/cvs/getlog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getlog.c,v 1.89 2008/06/14 04:34:08 tobias Exp $ */ +/* $OpenBSD: getlog.c,v 1.90 2008/09/12 13:38:35 tobias Exp $ */ /* * Copyright (c) 2005, 2006 Xavier Santolaria * Copyright (c) 2006 Joris Vink @@ -215,6 +215,11 @@ cvs_log_local(struct cvs_file *cf) return; } + if (logrev != NULL) + nrev = cvs_revision_select(cf->file_rcs, logrev); + else + nrev = cf->file_rcs->rf_ndelta; + cvs_printf("\nRCS file: %s", cf->file_rpath); if (cvs_cmdop != CVS_OP_RLOG) @@ -260,11 +265,6 @@ cvs_log_local(struct cvs_file *cf) cvs_printf("total revisions: %u", cf->file_rcs->rf_ndelta); - if (logrev != NULL) - nrev = cvs_revision_select(cf->file_rcs, logrev); - else - nrev = cf->file_rcs->rf_ndelta; - if (cf->file_rcs->rf_head != NULL && !(runflags & L_HEAD) && !(runflags & L_HEAD_DESCR)) cvs_printf(";\tselected revisions: %u", nrev); -- cgit v1.2.3