diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2008-02-02 19:26:25 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2008-02-02 19:26:25 +0000 |
commit | aafd8f818bad4f10b411084fc1e47d8bf1614e73 (patch) | |
tree | 1af2d3412a76419d251a3847a9cfc469f3e1b3b4 /usr.bin | |
parent | b53ba162427c19387077fd90d0809a8e51b003f4 (diff) |
Fix broken indentation introduced in last commit.
Spotted by Pierre Riteau.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/rlog.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/usr.bin/rcs/rlog.c b/usr.bin/rcs/rlog.c index 6b904ef56d4..3e86b37346c 100644 --- a/usr.bin/rcs/rlog.c +++ b/usr.bin/rcs/rlog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rlog.c,v 1.60 2008/02/02 16:21:38 xsa Exp $ */ +/* $OpenBSD: rlog.c,v 1.61 2008/02/02 19:26:24 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> @@ -370,25 +370,26 @@ rlog_rev_print(struct rcs_delta *rdp) */ if (nrdp != NULL && rdp->rd_num->rn_len == nrdp->rd_num->rn_len) { int added, removed; + rcs_delta_stats(nrdp, &added, &removed); if (RCSNUM_ISBRANCHREV(rdp->rd_num)) printf(" lines: +%d -%d", added, removed); else printf(" lines: +%d -%d", removed, added); - } - printf("\n"); + } + printf("\n"); - if (!TAILQ_EMPTY(&(rdp->rd_branches))) { - printf("branches:"); - TAILQ_FOREACH(rb, &(rdp->rd_branches), rb_list) { - RCSNUM *branch; - branch = rcsnum_revtobr(rb->rb_num); - (void)rcsnum_tostr(branch, numb, sizeof(numb)); - printf(" %s;", numb); - rcsnum_free(branch); - } - printf("\n"); + if (!TAILQ_EMPTY(&(rdp->rd_branches))) { + printf("branches:"); + TAILQ_FOREACH(rb, &(rdp->rd_branches), rb_list) { + RCSNUM *branch; + branch = rcsnum_revtobr(rb->rb_num); + (void)rcsnum_tostr(branch, numb, sizeof(numb)); + printf(" %s;", numb); + rcsnum_free(branch); } + printf("\n"); + } printf("%s", rdp->rd_log); } |