On Mon, Jan 14, 2002 at 01:56:51PM -0600, cmpilato@tigris.org wrote:
>...
> +++ NEW/trunk/subversion/libsvn_wc/util.c Mon Jan 14 13:56:49 2002
> @@ -111,14 +111,13 @@
> {
> enum svn_wc__eol_style style;
> const char *eol;
> - char *revision, *author, *date, *url;
> + svn_io_keywords_t *keywords;
>
> SVN_ERR (svn_wc__get_eol_style (&style, &eol, vfile->data, pool));
> - SVN_ERR (svn_wc__get_keywords (&revision, &author, &date, &url,
> + SVN_ERR (svn_wc__get_keywords (&keywords,
> vfile->data, NULL, pool));
>
> - if ((style == svn_wc__eol_style_none)
> - && (! revision) && (! author) && (! date) && (! url))
> + if ((style == svn_wc__eol_style_none) && (! keywords))
What about the case where keywords is supplied, but the pointers are all
NULL? Is an app supposed to first check the keywords structure before
passing it, decide there isn't anything in it, and pass NULL instead? I'd
say "no" :-) ... which means you could get all NULLs and not want to do any
translation.
>...
> @@ -1602,9 +1608,7 @@
> - fb->dir_baton->path->len - 1,
> fb->pool);
>
> - /* ### check for NULL keyword structure in future: */
> - if ((eol_style == svn_wc__eol_style_none)
> - && (! (revision || date || author || url)))
> + if ((eol_style == svn_wc__eol_style_none) && (! keywords))
Same here. Sorry, but I lost/deleted the context...
>...
> #if 0 /* ### todo: here's a little shortcut */
> - if (! (eol_str || revision || date || author || url))
> + if (! (eol_str || keywords))
And here?
Cheers,
-g
--
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:56 2006