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

Re: svn commit: r1338350 - in /subversion/trunk/subversion: libsvn_subr/io.c libsvn_subr/skel.c libsvn_wc/wc_db.c

From: Greg Stein <gstein_at_gmail.com>
Date: Mon, 14 May 2012 17:42:01 -0400

On Mon, May 14, 2012 at 3:12 PM, <stsp_at_apache.org> wrote:
> Author: stsp
> Date: Mon May 14 19:12:13 2012
> New Revision: 1338350
>
> URL: http://svn.apache.org/viewvc?rev=1338350&view=rev
> Log:
> Use svn_hash__make() instead of apr_hash_make() in select places to ensure
> stable ordering of output. This commit makes the output of 'svn status'
> and 'svn proplist' stable.

I think you're solving this at the wrong level. Why should the
functions below care about stable ordering? These are hash tables,
which *by definition* are "unordered". With these changes, you're
affecting *all* users rather than just the places that are important.

If you want stable ordering, then at some higher level _where ordering
matters_, get an array of sorted keys and walk the hash table that
way.

I'm somewhere between -0.5 and -1 on this commit. I feel pretty
strongly that this is not a correct solution.

Thanks,
-g
Received on 2012-05-14 23:42:34 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.