diff options
author | 2008-02-09 16:05:08 +0000 | |
---|---|---|
committer | 2008-02-09 16:05:08 +0000 | |
commit | 556b17e717bd7874f13248e2797b36b11a7ffb38 (patch) | |
tree | 3a425cf166c7e96d6afc7fe116677b6d50acf3ef /usr.bin/cvs/annotate.c | |
parent | Mention new HW_PHYSMEM64 and HW_USERMEM64 variables. Mark HW_PHYSMEM and (diff) | |
download | wireguard-openbsd-556b17e717bd7874f13248e2797b36b11a7ffb38.tar.xz wireguard-openbsd-556b17e717bd7874f13248e2797b36b11a7ffb38.zip |
If no revision or date has been specified, default to HEAD.
OK joris@
Diffstat (limited to 'usr.bin/cvs/annotate.c')
-rw-r--r-- | usr.bin/cvs/annotate.c | 5 |
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. */ |