diff options
author | 2007-09-22 15:41:46 +0000 | |
---|---|---|
committer | 2007-09-22 15:41:46 +0000 | |
commit | f53e07cabd658458123c548ca9c0ae127c1a469e (patch) | |
tree | 4288cbcdb86803ed3fe30970ded57fe9785726d9 | |
parent | fix error message output, it caused diffs to be formed incorrectly (diff) | |
download | wireguard-openbsd-f53e07cabd658458123c548ca9c0ae127c1a469e.tar.xz wireguard-openbsd-f53e07cabd658458123c548ca9c0ae127c1a469e.zip |
in rcs_translate_tag() do not fail when a tag resolved
to a normal revision instead of a branch, its perfectly valid.
-rw-r--r-- | usr.bin/cvs/rcs.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c index d93ffbd8d98..f69a87d623f 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.219 2007/09/17 10:07:21 tobias Exp $ */ +/* $OpenBSD: rcs.c,v 1.220 2007/09/22 15:41:46 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -2594,9 +2594,13 @@ rcs_translate_tag(const char *revstr, RCSFILE *rfp) if (rev == NULL) return (NULL); - /* If this isn't a branch revision, we have a problem */ + /* + * If it was not a branch, thats ok the symbolic + * name refered to a revision, so return the resolved + * revision for the given name. + */ if (!RCSNUM_ISBRANCH(rev)) - fatal("rcs_translate_tag: tag `%s' is not a branch", revstr); + return (rev); brev = rcsnum_alloc(); rcsnum_cpy(rev, brev, rev->rn_len - 1); |