=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/getlog.c,v retrieving revision 1.89 retrieving revision 1.90 diff -c -r1.89 -r1.90 *** src/usr.bin/cvs/getlog.c 2008/06/14 04:34:08 1.89 --- src/usr.bin/cvs/getlog.c 2008/09/12 13:38:35 1.90 *************** *** 1,4 **** ! /* $OpenBSD: getlog.c,v 1.89 2008/06/14 04:34:08 tobias Exp $ */ /* * Copyright (c) 2005, 2006 Xavier Santolaria * Copyright (c) 2006 Joris Vink --- 1,4 ---- ! /* $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,220 **** --- 215,225 ---- 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) *************** *** 259,269 **** cf->file_rcs->rf_expand == NULL ? "kv" : cf->file_rcs->rf_expand); 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)) --- 264,269 ----