diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-09-12 13:38:36 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-09-12 13:38:36 +0000 |
commit | d3ded228a54f70bc11a648d8a8406e615665106f (patch) | |
tree | 1ec49021df4737621a869952cfe9e6b2d3b3e98f /usr.bin | |
parent | 024542023024523225b79fc96c0b6172fcc1e970 (diff) |
Move the revision selection in front of output, so errors won't mix up
with output. Matches GNU cvs.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/getlog.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 <xsa@openbsd.org> * Copyright (c) 2006 Joris Vink <joris@openbsd.org> @@ -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); |