[darcs-users] Revised storage disciplines

Max Battcher me at worldmaker.net
Fri Jul 24 22:08:02 UTC 2009

Nathaniel W Filardo wrote:
> On Wed, Jul 22, 2009 at 08:56:00PM -0400, Max Battcher wrote:
>> Certainly one possible solution here would be to simply carry over the  
>> Hash: lines from the darcs-2 inventory format as (optional) hints for  
>> file paths in context files. Considering the otherwise congruency of the  
>> context and inventory files I would hope this might be something easy to  
>> achieve (and would be useful generally), and I'm hoping the reason it  
>> hasn't been done is simply because it hasn't thought to be done.
> While we're talking about revving the storage, would it be feasible to
> switch _all_ references to patches to be by hash only?

I agree that this should be put onto the table for consideration... My 
only questions would be as to whether losing the obvious "sanity check" 
of having the patch name/comment/date/old hash for (super rare?) hash 
collisions is something to be concerned with?

Beyond that, it certainly would reduce the bandwidth used by context 
files and patch contexts if they consisted of nothing more than a list 
of hashes. Not that bandwidth of existing context files is terrible in 
this gmail era, but it is a consideration.

--Max Battcher--

More information about the darcs-users mailing list