Amount of data transferred for 'no-op' pull
John Arbash Meinel
john at arbash-meinel.com
Thu Dec 10 00:47:56 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andrew Bennetts wrote:
> John Arbash Meinel wrote:
> [...]
>> identical. Adding a check for:
>>
>> if branch.last_revision() != remote_branch.last_revision():
>> branch.pull(remote_branch, overwrite=True)
>>
>> dropped the transfer down to 51kB, which is more expected.
>>
>> I thought Branch.pull(other) already had the last_revision shortcut. Did
>> something happen to it?
>
> I'm not sure that this is the reason, but perhaps it was removed an
> attempt to keep HPSS calls to a minimum? It should be possible to put
> this cheap check somewhere where it won't affect the HPSS call count,
> though.
>
> -Andrew.
>
>
Well, I'm doing http requests here, but sure.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAksgRTwACgkQJdeBCYSNAAPvWwCeIyU8K6Ulr9lRtwu2dWPispC0
aAgAoMvSO7dv3HCelOFf2pIAZ9RwktzB
=Mx3H
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list