diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-10-26 19:07:31 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-10-26 19:07:31 +0000 |
commit | 32adf1aaf358e063069e6b5463d5d9fd8cf97758 (patch) | |
tree | 3271d15f1449de152061d3ed226e3fa5f20b4a92 /usr.bin | |
parent | 1d2a657595f111606ebb683f9d9da32839f2948c (diff) |
print locker's name and rev number for locked revisions; ok joris niallo
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/rlog.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <joris@openbsd.org> * 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); |