diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2007-10-09 12:24:14 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2007-10-09 12:24:14 +0000 |
commit | 5260487a05f193768debd731c129efc702dbc6f8 (patch) | |
tree | bc66e388c16660ce01167e83e55c2a1a0857a2e2 /usr.bin/cvs | |
parent | 85a3d9454aef8de0674de833e0d4556a70dd1c7a (diff) |
Do not use working HEAD (file_rcsrev), instead use file_rcs->rf_head to
print revision info.
OK niallo@
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/annotate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c index b5661265f0a..2def0a2636b 100644 --- a/usr.bin/cvs/annotate.c +++ b/usr.bin/cvs/annotate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: annotate.c,v 1.40 2007/10/09 12:22:27 tobias Exp $ */ +/* $OpenBSD: annotate.c,v 1.41 2007/10/09 12:24:13 tobias Exp $ */ /* * Copyright (c) 2007 Tobias Stoeckmann <tobias@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -128,17 +128,17 @@ cvs_annotate_local(struct cvs_file *cf) return; if (cvs_specified_tag == NULL) - rcs_rev_getlines(cf->file_rcs, cf->file_rcsrev, &alines); + rcs_rev_getlines(cf->file_rcs, cf->file_rcs->rf_head, &alines); else { rev = rcsnum_parse(cvs_specified_tag); - if (rcsnum_cmp(rev, cf->file_rcsrev, 0) < 0) { + if (rcsnum_cmp(rev, cf->file_rcs->rf_head, 0) < 0) { if (!force_head) { /* Stick at weird GNU cvs, ignore error. */ rcsnum_free(rev); return; } - rcsnum_cpy(cf->file_rcsrev, rev, 0); + rcsnum_cpy(cf->file_rcs->rf_head, rev, 0); } rcs_rev_getlines(cf->file_rcs, rev, &alines); rcsnum_free(rev); |