From 32adf1aaf358e063069e6b5463d5d9fd8cf97758 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Wed, 26 Oct 2005 19:07:31 +0000 Subject: print locker's name and rev number for locked revisions; ok joris niallo --- usr.bin/rcs/rlog.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/rcs/rlog.c b/usr.bin/rcs/rlog.c index 548c4d8814e..feff8214e59 100644 --- a/usr.bin/rcs/rlog.c +++ b/usr.bin/rcs/rlog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rlog.c,v 1.9 2005/10/26 09:53:35 xsa Exp $ */ +/* $OpenBSD: rlog.c,v 1.10 2005/10/26 19:07:30 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink * All rights reserved. @@ -135,6 +135,7 @@ rlog_file(const char *fname, const char *fpath, RCSFILE *file) struct rcs_sym *sym; struct rcs_delta *rdp; struct rcs_access *acp; + struct rcs_lock *lkp; printf("\nWorking file: %s", fname); printf("\nhead:"); @@ -148,6 +149,9 @@ rlog_file(const char *fname, const char *fpath, RCSFILE *file) } printf("\nlocks: %s", (file->rf_flags & RCS_SLOCK) ? "strict" : ""); + TAILQ_FOREACH(lkp, &(file->rf_locks), rl_list) + printf("\n\t%s: %s", lkp->rl_name, + rcsnum_tostr(lkp->rl_num, numb, sizeof(numb))); printf("\naccess list:\n"); TAILQ_FOREACH(acp, &(file->rf_access), ra_list) printf("\t%s\n", acp->ra_name); -- cgit v1.2.3