From b03d8731fb14e2a071453b06a18abce8a35e73fe Mon Sep 17 00:00:00 2001 From: tobias Date: Sun, 3 Feb 2008 16:59:11 +0000 Subject: Do not unify this "-fr UNKNOWN" handling, it breaks commands which have to work fine and just ignore files which don't have requested symbol. Spotted by joris@. --- usr.bin/cvs/annotate.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'usr.bin/cvs/annotate.c') diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c index 2e8c6cc9feb..7996d19ed0b 100644 --- a/usr.bin/cvs/annotate.c +++ b/usr.bin/cvs/annotate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: annotate.c,v 1.49 2008/02/02 16:59:48 tobias Exp $ */ +/* $OpenBSD: annotate.c,v 1.50 2008/02/03 16:59:11 tobias Exp $ */ /* * Copyright (c) 2007 Tobias Stoeckmann * Copyright (c) 2006 Xavier Santolaria @@ -161,6 +161,11 @@ cvs_annotate_local(struct cvs_file *cf) /* Stick at weird GNU cvs, ignore error. */ return; + /* -f is not allowed for unknown symbols */ + rev = rcsnum_parse(cvs_specified_tag); + if (rev == NULL) + fatal("no such tag %s", cvs_specified_tag); + rcsnum_free(rev); rev = rcsnum_alloc(); rcsnum_cpy(cf->file_rcs->rf_head, rev, 0); } -- cgit v1.2.3-59-g8ed1b