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

Re: svn commit: r1350791 - /subversion/trunk/subversion/libsvn_client/repos_diff.c

From: Greg Stein <gstein_at_gmail.com>
Date: Sat, 16 Jun 2012 09:42:23 -0400

On Jun 15, 2012 10:44 PM, <ivan_at_apache.org> wrote:
>...
> +++ subversion/trunk/subversion/libsvn_client/repos_diff.c Fri Jun 15
20:44:00 2012
> ...
> @@ -1101,17 +1099,28 @@ close_directory(void *dir_baton,
>
> scratch_pool = b->pool;
>
> - if (!b->added && b->propchanges->nelts > 0)
> - remove_non_prop_changes(b->pristine_props, b->propchanges);
> + if (b->added)
> + {
> + pristine_props = eb->empty_hash;
> + }
> + else
> + {
> + SVN_ERR(svn_ra_get_dir2(eb->ra_session, NULL, NULL,
&pristine_props,
> + b->path, b->base_revision, 0,
scratch_pool));
> + }
> +
> + if (b->propchanges->nelts > 0)
> + {
> + remove_non_prop_changes(pristine_props, b->propchanges);
> + }

Shouldn't the remove_non_prop_changes() be moved into the else block? That
would be the same as before, and there is no need to try and remove stuff
from an empty hash.

>...

Cheers,
-g
Received on 2012-06-16 15:42:57 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.