Repository should have way to check whether repository is empty

Bug #299117 reported by Jelmer Vernooij
2
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.

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

Of course there is len(repository.revisions.keys()) but that can be *very* slow for some repository implementations (such as svn repositories) or unimplemented

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

(and it scales with history)

Revision history for this message
John A Meinel (jameinel) wrote :

bzr could also make use of it with the smart server request (PendingAncestry grabs all of the ancestry of a given revision, without having to walk the history across the network).

Changed in bzr:
importance: Undecided → Wishlist
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.