diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-02-14 13:26:44 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-02-14 13:26:44 +0000 |
commit | c2d6ab7f1138b2021787c27f5a4e3eda86180e95 (patch) | |
tree | ba4aeb1586019a34ef1317d3b5021c28d64c48a1 /usr.bin | |
parent | e03b00aae34389d3a65f6d21cfc3651e621bcb31 (diff) |
fix output when checking in a file for the first time. OK niallo@.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/ci.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index e0e7293827e..ea085c71ba6 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.92 2006/01/05 10:28:24 xsa Exp $ */ +/* $OpenBSD: ci.c,v 1.93 2006/02/14 13:26:43 xsa Exp $ */ /* * Copyright (c) 2005 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -248,6 +248,9 @@ checkin_main(int argc, char **argv) status = checkin_update(&pb); } + if (verbose == 1) + printf("done\n"); + return (status); } @@ -540,7 +543,7 @@ static int checkin_init(struct checkin_params *pb) { BUF *bp, *dp; - char *filec; + char *filec, numb[64]; const char *rcs_desc; /* Load file contents */ @@ -616,8 +619,12 @@ checkin_init(struct checkin_params *pb) checkout_rev(pb->file, pb->newrev, pb->filename, pb->flags, pb->username, pb->author, NULL, NULL); + printf("initial revision: %s\n", + rcsnum_tostr(pb->newrev, numb, sizeof(numb))); + /* File will NOW be synced */ rcs_close(pb->file); + return (0); } @@ -677,8 +684,6 @@ checkin_revert(struct checkin_params *pb) pb->flags, pb->username, pb->author, NULL, NULL); rcs_lock_remove(pb->file, pb->username, pb->frev); rcs_close(pb->file); - if (verbose == 1) - printf("done\n"); } /* |