r18475 | djames | 2006-02-15 23:04:26 -0600 (Wed, 15 Feb 2006)
Import the shutil module for use in a conditional case.
Patch by: Hyrum K. Wright <hyrum_wright@byu.edu>
* build/generator/swig/checkout_swig_header.py:
Import shutil module.
r17336 | julianfoad | 2005-11-14 13:57:20 -0600 (Mon, 14 Nov 2005)
Replace some occurrences of SVN_ERR_CL_ARG_PARSING_ERR in favor of
SVN_ERR_CL_INSUFFICIENT_ARGS. INSUFFICIENT_ARGS better matches the
meaning of what we were using ARG_PARSING_ERR for. Also, update the
generic error message to suggest running help.
Patch by: Hyrum K. Wright <hyrum_wright@byu.edu>
me
* subversion/include/svn_error_codes.h
(SVN_ERR_CL_INSUFFICIENT_ARGS): Add suggestion to run 'svn help'.
* subversion/libsvn_subr/opt.c
(svn_opt_parse_num_args): Replace SVN_ERR_CL_ARG_PARSING_ERR in favor
of SVN_ERR_CL_INSUFFICIENT_ARGS.
[in subversion/clients/cmdline]
* cleanup-cmd.c
(svn_cl__cleanup): Don't bother checking for no arguments just after
we've ensured there is one.
* copy-cmd.c (svn_cl__copy):
* export-cmd.c (svn_cl__export):
* move-cmd.c (svn_cl__move):
Split the conditional checking for arguments and replace
SVN_ERR_CL_ARG_PARSING_ERR in favor of SVN_ERR_CL_INSUFFICIENT_ARGS.
This is consistent with svn_cl__import.
* add-cmd.c (svn_cl__add),
blame-cmd.c (svn_cl__blame),
cat-cmd.c (svn_cl__cat),
checkout-cmd.c (svn_cl__checkout),
delete-cmd.c (svn_cl__delete),
import-cmd.c (svn_cl__import),
lock-cmd.c (svn_cl__lock),
merge-cmd.c (svn_cl__merge),
mkdir-cmd.c (svn_cl__mkdir),
resolved-cmd.c (svn_cl__resolved),
revert-cmd.c (svn_cl__revert),
switch-cmd.c (rewrite_urls, svn_cl__switch),
unlock-cmd.c (svn_cl__unlock): Replace SVN_ERR_CL_ARG_PARSING_ERR in
favor of SVN_ERR_CL_INSUFFICIENT_ARGS.