From 15d75bdaf1b4b7193d7529f5fbcb5fb4c3560bf2 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Tue, 24 Jan 2006 10:29:46 +0000 Subject: print locker's name if revision is locked; --- usr.bin/rcs/rlog.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.bin/rcs') diff --git a/usr.bin/rcs/rlog.c b/usr.bin/rcs/rlog.c index b34444d6c37..713a17ba145 100644 --- a/usr.bin/rcs/rlog.c +++ b/usr.bin/rcs/rlog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rlog.c,v 1.21 2006/01/23 17:08:45 xsa Exp $ */ +/* $OpenBSD: rlog.c,v 1.22 2006/01/24 10:29:45 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink * Copyright (c) 2005, 2006 Xavier Santolaria @@ -253,8 +253,10 @@ rlog_rev_print(struct rcs_delta *rdp) rcsnum_tostr(rdp->rd_num, numb, sizeof(numb)); - printf("revision %s\n", numb); - printf("date: %d/%02d/%02d %02d:%02d:%02d;" + printf("revision %s", numb); + if (rdp->rd_locker != NULL) + printf("\tlocked by: %s;", rdp->rd_locker); + printf("\ndate: %d/%02d/%02d %02d:%02d:%02d;" " author: %s; state: %s;\n", rdp->rd_date.tm_year + 1900, rdp->rd_date.tm_mon + 1, -- cgit v1.2.3