summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-02-09 16:05:09 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-02-09 16:05:09 +0000
commit6ed3d1f5c8ed298f7f615cf644fe7500822f7e10 (patch)
treeec4a304cb74ab176e3db4f10c4fd4702fd59d574 /usr.bin/cvs
parente4dc0d4bee6c78371d407c003854a44eb1c5b9a9 (diff)
If no revision or date has been specified, default to HEAD.
OK joris@
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/annotate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c
index af242152fc4..d868e07d963 100644
--- a/usr.bin/cvs/annotate.c
+++ b/usr.bin/cvs/annotate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: annotate.c,v 1.53 2008/02/09 14:34:40 tobias Exp $ */
+/* $OpenBSD: annotate.c,v 1.54 2008/02/09 16:05:08 tobias Exp $ */
/*
* Copyright (c) 2007 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -203,7 +203,8 @@ cvs_annotate_local(struct cvs_file *cf)
}
rcsnum_free(rev);
} else {
- rcs_rev_getlines(cf->file_rcs, cf->file_rcsrev, &alines);
+ rcs_rev_getlines(cf->file_rcs, cvs_specified_date ?
+ cf->file_rcsrev : cf->file_rcs->rf_head, &alines);
}
/* Stick at weird GNU cvs, ignore error. */