bfiles integration into core hg

Benoit Boissinot bboissin at gmail.com
Tue Apr 13 14:37:15 CDT 2010


Sorry if this has already been discussed, I didn't follow closely
bfiles development.

While reading stuff about lwcopy, it got me thinking how close it
feels to bfiles. Can't bfiles be implemented in the same as lwcopy?

- store a fake revision, with filelog metadata 'bfiles=<sha1sum of the
file>' followed by an empty text
- like lwcopy, teach filelog to first read the metadata, if it's a
bfiles entry it should fetch it from the store instead of building it
from the revlog
- like lwcopy, for efficiency it would be better to modify the network
protocol (changegroup format) to support it.

What's missing? (I think some places should accept "streams" instead
of strings to avoid keeping the object in memory, but that would be a
later optimization)

Benoit


More information about the Mercurial-devel mailing list