Repository should have way to check whether repository is empty
Bug #299117 reported by
Jelmer Vernooij
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
the Repository class should have a method to check whether it is empty. bzr-svn can significantly optimize fetching if it knows none of the revisions it has to fetch are present yet.
tags: | added: check-for-breezy |
To post a comment you must log in.
Of course there is len(repository. revisions. keys()) but that can be *very* slow for some repository implementations (such as svn repositories) or unimplemented