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

Re: hash api is clumsy

From: Karl Fogel <kfogel_at_galois.collab.net>
Date: 2000-10-06 00:46:24 CEST

Greg Stein <gstein@lyra.org> writes:
> Sure, stuff like this can be changed. There aren't too many consumers of the
> hash interface (yet) in APR/Apache. We're using them quite a bit in SVN, but
> I have noticed that people aren't using 0 for the length much(??).

If anyone's depending on it, I'm sure it won't be too much trouble to
change.

> Well, a zero-length key is awfully strange. When does that happen?
>
> I'm quite willing to make this change, but I'd like to understand the
> scenario a bit more.

I know a time when it could happen in the working copy: in a
directory, all entries have non-empty names except the dir itself --
because it cannot know its own name, it has the empty string for a
name. So if I were hashing entries for some reason, I'd probably want
that to Just Work.
Received on Sat Oct 21 14:36:10 2006

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.