Allow largefiles to be at a different location - Implementation details

Matt Harbison mharbison72 at gmail.com
Tue May 24 02:29:18 UTC 2016


On Mon, 23 May 2016 16:52:43 -0400, Piotr Listkiewicz  
<piotr.listkiewicz at gmail.com> wrote:

> There are several ways to implement getting large files from different
> location and no matter which solution is chosen there is a problem when
> client uses hg that doesn't support new feature to connect to repository
> with this feature enabled. I would like to know which of the following
> solutions you find best or do you have any comments etc:

Unfortunately, I'm not familiar at all with the wire protocol.  It will  
take me a few days to catch up.

[snip]

>
> Any of those ideas have problems with knowing size of largefile, are  
> there
> any reason that proto.getlfile must include size at the beggining of the
> stream - wouldn't it be easier if client just download all data from  
> stream?

That would rely on the other side closing the socket to signal EOF.  I'm  
guessing there's some SSH or HTTP server or proxy that doesn't do that  
reliably?



More information about the Mercurial-devel mailing list