diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2007-09-07 23:05:05 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2007-09-07 23:05:05 +0000 |
commit | c7f0016390151b0e6c26e445ec857ba21f0a5d42 (patch) | |
tree | 34a3eb0a708d4ce764fd6f4e7b2edec1cfb9a8a4 /usr.bin/cvs/update.c | |
parent | cb64838a95d5c863be298156493803e84bdc3c37 (diff) |
Sprinkle some magic so checkout/update -p works
in both local and server mode.
OK tobias@
Diffstat (limited to 'usr.bin/cvs/update.c')
-rw-r--r-- | usr.bin/cvs/update.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c index f23539b1559..0897f6f78ce 100644 --- a/usr.bin/cvs/update.c +++ b/usr.bin/cvs/update.c @@ -1,4 +1,4 @@ -/* $OpenBSD: update.c,v 1.107 2007/09/04 17:57:41 tobias Exp $ */ +/* $OpenBSD: update.c,v 1.108 2007/09/07 23:05:04 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -27,7 +27,7 @@ #include "remote.h" int prune_dirs = 0; -int print = 0; +int print_stdout = 0; int build_dirs = 0; int reset_stickies = 0; char *cvs_specified_tag = NULL; @@ -82,7 +82,7 @@ cvs_update(int argc, char **argv) prune_dirs = 1; break; case 'p': - print = 1; + print_stdout = 1; cvs_noexec = 1; break; case 'Q': @@ -118,7 +118,7 @@ cvs_update(int argc, char **argv) cvs_client_send_request("Argument -l"); if (prune_dirs) cvs_client_send_request("Argument -P"); - if (print) + if (print_stdout) cvs_client_send_request("Argument -p"); cr.enterdir = NULL; @@ -319,7 +319,7 @@ cvs_update_local(struct cvs_file *cf) cvs_server_clear_sticky(cf->file_wd); } - if (print && cf->file_status != FILE_UNKNOWN) { + if (print_stdout && cf->file_status != FILE_UNKNOWN) { rcsnum_tostr(cf->file_rcsrev, rbuf, sizeof(rbuf)); if (verbosity > 1) cvs_printf("%s\nChecking out %s\n" |