=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/add.c,v retrieving revision 1.31 retrieving revision 1.32 diff -c -r1.31 -r1.32 *** src/usr.bin/cvs/add.c 2005/09/21 16:30:03 1.31 --- src/usr.bin/cvs/add.c 2005/09/25 17:38:44 1.32 *************** *** 1,4 **** ! /* $OpenBSD: add.c,v 1.31 2005/09/21 16:30:03 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * Copyright (c) 2005 Xavier Santolaria --- 1,4 ---- ! /* $OpenBSD: add.c,v 1.32 2005/09/25 17:38:44 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * Copyright (c) 2005 Xavier Santolaria *************** *** 47,55 **** static int cvs_add_init(struct cvs_cmd *, int, char **, int *); static int cvs_add_pre_exec(struct cvsroot *); static int cvs_add_directory(CVSFILE *); - #if 0 static int cvs_add_build_entry(CVSFILE *); - #endif struct cvs_cmd cvs_cmd_add = { CVS_OP_ADD, CVS_REQ_ADD, "add", --- 47,53 ---- *************** *** 153,159 **** static int cvs_add_local(CVSFILE *cf, void *arg) { ! int added; char numbuf[64]; added = 0; --- 151,157 ---- static int cvs_add_local(CVSFILE *cf, void *arg) { ! int added, ret; char numbuf[64]; added = 0; *************** *** 197,206 **** return (0); } ! if (verbosity > 1) { ! cvs_log(LP_NOTICE, "scheduling file `%s' for addition", ! cf->cf_name); added++; } if (added != 0) { --- 195,207 ---- return (0); } ! if ((ret = cvs_add_build_entry(cf)) != 0) ! return (ret); ! else { added++; + if (verbosity > 1) + cvs_log(LP_NOTICE, "scheduling file `%s' for addition", + cf->cf_name); } if (added != 0) { *************** *** 317,323 **** return (0); } - #if 0 static int cvs_add_build_entry(CVSFILE *cf) { --- 318,323 ---- *************** *** 380,383 **** return (0); } - #endif --- 380,382 ----