Clone status extension

Steve Barnes gadgetsteve at hotmail.com
Wed Apr 2 05:18:06 UTC 2014


On 02/04/14 05:17, anatoly techtonik wrote:
> On Wed, Apr 2, 2014 at 1:25 AM, Matt Mackall <mpm at selenic.com> wrote:
>> hg log -r 'not ::tip' -q | wc
> This won't work on Windoze - needs "" and no wc. So, there is no way to
> implement an incremental download of changesets in chunks over unreliable
> connection. Right? I'd prefer to download in 1-10Mb chunks.
>
Personally I found, when pulling large repositories from svn over a very 
flaky network with a strange firewall set-up, that picking some number 
that gave me the chunks that I was happy with and doing:

R = 1
while not /hg says no such rev/:
    R += ChunkTo
    hg pull -r R
hg pull

If you are chunking to a moderate size you are likely to hit at random 
most reasonable size branches - the final pull should get the leftovers.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140402/730d3284/attachment-0002.html>


More information about the Mercurial mailing list