diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-01-24 10:29:46 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-01-24 10:29:46 +0000 |
commit | 15d75bdaf1b4b7193d7529f5fbcb5fb4c3560bf2 (patch) | |
tree | c0503dce706417e65e5beb8552ed92169b8a82c1 /usr.bin/rcs | |
parent | 07582cfa163a8e94f2741e3f016e698ad449f272 (diff) |
print locker's name if revision is locked;
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/rlog.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 <joris@openbsd.org> * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> @@ -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, |