summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-05-29 07:16:45 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-05-29 07:16:45 +0000
commita593ed17cecf2a6e203366feace570e084805e1e (patch)
tree0a2224ed50c956897c8716e89503536b3e682f85 /usr.bin
parent466952ab02e295f3dd0d8db5d7f7f65e430913f6 (diff)
make the log command use rcs_translate_tag
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/util.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c
index eea8798ad9b..4af0821217a 100644
--- a/usr.bin/cvs/util.c
+++ b/usr.bin/cvs/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.82 2006/05/28 21:34:37 joris Exp $ */
+/* $OpenBSD: util.c,v 1.83 2006/05/29 07:16:44 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
@@ -880,12 +880,10 @@ cvs_revision_select(RCSFILE *file, char *range)
if (lstr == NULL)
lstr = RCS_HEAD_INIT;
- if ((lnum = rcsnum_parse(lstr)) == NULL)
- fatal("invalid revision %s", lstr);
+ lnum = rcs_translate_tag(lstr, file);
if (rstr != NULL) {
- if ((rnum = rcsnum_parse(rstr)) == NULL)
- fatal("invalid revision %s", rstr);
+ rnum = rcs_translate_tag(rstr, file);
} else {
rnum = rcsnum_alloc();
rcsnum_cpy(file->rf_head, rnum, 0);