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

Re: [PATCH] svn log url -rXXX should display proper error message

From: Bhuvaneswaran Arumugam <bhuvan_at_collab.net>
Date: Wed, 19 Mar 2008 23:07:41 +0530

On Wed, 2008-03-19 at 13:15 -0400, Karl Fogel wrote:
> "Bhuvaneswaran Arumugam" <bhuvan_at_collab.net> writes:
> > [[
> > Rename the macro which checks if revision kind is dependent on a WC. Use
> > the new macro wherever it is applicable.
> >
> > * subversion/include/svn_client.h
> > (SVN_CLIENT_IS_WC_DEPENDENT_REVKIND): Move this macro ...
> > * subversion/libsvn_client/client.h
> > (SVN_CLIENT__REVKIND_NEEDS_WC) ... to here and rename it.
> > * subversion/libsvn_client/copy.c
> > (setup_copy): Use the macro.
> > * subversion/libsvn_client/log.c
> > (svn_client_log4): Use the new macro.
> >
> > Suggested by: kfogel
> > ]]
>
> Should say it follows up to r29948.

Yep.

> > --- subversion/libsvn_client/client.h (revision 29949)
> > +++ subversion/libsvn_client/client.h (working copy)
> > @@ -1059,6 +1059,17 @@
> > svn_client_ctx_t *ctx,
> > apr_pool_t *pool);
> >
> > +
> > +/** Return TRUE iff revision kind is dependent on the working copy.
> > + * Otherwise, return FALSE.
> > + *
> > + * @since New in 1.6.
> > + */
> > +#define SVN_CLIENT__REVKIND_NEEDS_WC(kind) \
> > + ((kind == svn_opt_revision_base || kind == svn_opt_revision_previous || \
> > + kind == svn_opt_revision_working || kind == svn_opt_revision_committed) \
> > + ? TRUE : FALSE)
> > +
> >
>
> The uses of "kind" should be "(kind)", that's a super-safe way to write
> macros, for reasons you probably remember now that I'm saying it :-).

I've incorporated this change. Please find attached the revised patch.

[[
This is a follow-up for r29948. Rename the macro which checks if
revision kind is dependent on a WC. Use the new macro wherever it is
applicable.
 
* subversion/include/svn_client.h
  (SVN_CLIENT_IS_WC_DEPENDENT_REVKIND): Move this macro ...
* subversion/libsvn_client/client.h
  (SVN_CLIENT__REVKIND_NEEDS_WC) ... to here and rename it.
* subversion/libsvn_client/copy.c
  (setup_copy): Use the macro.
* subversion/libsvn_client/log.c
  (svn_client_log4): Use the new macro.

Suggested by: kfogel
]]

-- 
Regards,
Bhuvaneswaran

Received on 2008-03-19 18:38:00 CET

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