[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Refactor code for --auto-props and --no-auto-props mutual exclusion

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: 2007-08-13 16:25:22 CEST

Senthil,

>
> /* Update auto-props-enable option, and populate the MIME types map,
> - for add/import commands */
> + for add/import commands. Also check for mutually exclusive options
> + --auto-props and --no-auto-props */
> if (subcommand->cmd_func == svn_cl__add
> || subcommand->cmd_func == svn_cl__import)
> {
> + if (opt_state.autoprops && opt_state.no_autoprops)
> + {
> + err = svn_error_create(SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS, NULL,
> + _("--auto-props and --no-auto-props are "
> + "mutually exclusive"));
> + return svn_cmdline_handle_exit_error(err, pool, "svn: ");
> + }
> +
>
This code may not compile in older version of C compilers(code before
declaration.)

With regards
Kamesh Jayachandran

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 13 16:22:00 2007

This is an archived mail posted to the Subversion Dev mailing list.