From 415899aad4e96365d2b74a30fa9a492dddf8e49b Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Sun, 28 May 2017 16:58:55 +0000 Subject: Teach opencvs status to display the sticky tag according to what it really represents if it is a branch or a revision. ok stsp@ --- usr.bin/cvs/status.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/cvs/status.c b/usr.bin/cvs/status.c index 52d4c37a73c..ed212edba88 100644 --- a/usr.bin/cvs/status.c +++ b/usr.bin/cvs/status.c @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.98 2016/11/03 20:13:41 joris Exp $ */ +/* $OpenBSD: status.c,v 1.99 2017/05/28 16:58:54 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2005-2008 Xavier Santolaria @@ -235,8 +235,13 @@ cvs_status_local(struct cvs_file *cf) sizeof(buf)); } else { rcsnum_tostr(brev, revbuf, sizeof(revbuf)); - (void)xsnprintf(buf, sizeof(buf), - "(branch: %s)", revbuf); + if (RCSNUM_ISBRANCH(brev)) { + xsnprintf(buf, sizeof(buf), + "(branch: %s)", revbuf); + } else { + xsnprintf(buf, sizeof(buf), + "(revision: %s)", revbuf); + } free(brev); } -- cgit v1.2.3