checksum in mercurial clone

Mads Kiilerich mads at kiilerich.com
Fri Feb 8 00:51:20 UTC 2013


On 02/07/2013 11:16 AM, Isaac Jurado wrote:
> On Thu, Feb 7, 2013 at 4:19 PM, Jeshwanth Kumar N K
> <jeshkumar555 at gmail.com> wrote:
>> Hello :),
>>
>> when I clone a repository in mercurial, will it use any checksum mechanism
>> to test whether there is no error in downloading ?

TCP will use a simple checksum that makes it pretty reliable against 
most accidental errors ... and if you are using encryption (ssh or ssl) 
then it will most likely also detect transmission errors.

Mercurial do not duplicate this functionality. If you want to be sure 
that no errors are introduced while downloading then you can create a 
bundle on the server side, calculate a md5sum, transmit the bundle, 
check the md5sum, and pull from the bundle.

> If you want to make sure everything is consistent, you can run the following:
>
>    hg verify

verify will however not check everything - that would take too much time 
to be worth it.

/Mads






More information about the Mercurial mailing list