[RFC] Lazily lookup revision numbers.

Jelmer Vernooij jelmer at samba.org
Fri Jun 12 13:07:13 BST 2009


This patch adds a "stores_last_revno()" function to BranchFormat, the
intend of which is to avoid looking up revision numbers if we know a
branch doesn't store them. Instead we'll try to do a lookup using
another branch that does store revno's and can thus retrieve the
revision number much quicker.

At the moment bzr-svn and bzr-git already implement bits of this, by
overriding individual methods in e.g. BranchPullResult and
InterBranch to improve performance. Supporting revno-ignorant branches
in bzrlib a bit better should remove the need for some of these
overrides in bzr-svn/bzr-git/(bzr-hg).

Does this seem like a reasonable approach?

Cheers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lazy-revnos-4439.patch
Type: text/x-diff
Size: 5910 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090612/40929ee1/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090612/40929ee1/attachment.pgp 


More information about the bazaar mailing list