diff options
author | 2007-10-09 12:24:13 +0000 | |
---|---|---|
committer | 2007-10-09 12:24:13 +0000 | |
commit | 75f73c251e83861265ab04fc18bdd839fdf513ba (patch) | |
tree | 8941ada4644403e6cd314d37082df9bfbc8defff /usr.bin/cvs/annotate.c | |
parent | various style cleanups: (diff) | |
download | wireguard-openbsd-75f73c251e83861265ab04fc18bdd839fdf513ba.tar.xz wireguard-openbsd-75f73c251e83861265ab04fc18bdd839fdf513ba.zip |
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/annotate.c')
-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); |