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.
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 revisions. Currently Repository. gather_ stats() relies revisions) , so foreign branch plugins have to override
provide Repository.
on len(Repository.
it.
Cheers,
Jelmer