Amount of data transferred for 'no-op' pull

Andrew Bennetts andrew.bennetts at canonical.com
Wed Dec 9 23:25:01 GMT 2009


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.




More information about the bazaar mailing list