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

Re: Sorted output from Subversion commands

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2005-02-23 00:21:15 CET

Branko Čibej wrote:
> Julian Foad wrote:
>> Branko Čibej wrote:
>>> Greg Hudson wrote:
>>>> We have svn_sort__hash(). It's used in libsvn_subr/hash.c for hash
>>>> dumps, for instance.
>>>>
>>> Yes, but using this would mean we'd have to re-sort the table every
>>> time it's modified, which is a) inefficient, and b) doesn't work
>>> because we don't _know_ that the client modified the table

>> doesn't work?

> svn_wc_entries_read returns an apr_hash_t*. Most of the time, this hash
> table is cached in the adm_access baton. The user of the
> svn_wc_entries_read function can modify the hash table, and in doing so
> will modify the cache. This means that we cannot also cache a sorted
> list of the hash table, because we can never be certain that the list is
> up-to-date.

Right, that wouldn't work, but it wasn't apparent that Greg or anyone was
suggesting doing that.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Feb 23 00:22:33 2005

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.