Code review comment for lp:~jelmer/bzr/repo-size

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This patch adds a custom implementation of Repository.__len__ that
returns the number of revisions in the repository.

This is mainly convenient for foreign branch plugins, which do not
provide Repository.revisions. Currently Repository.gather_stats() relies
on len(Repository.revisions), so foreign branch plugins have to override
it.

Cheers,

Jelmer

« Back to merge proposal