/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

(jam) Implement Graph.find_distance_to_null(),
        use it to speed up finding the revno when we are setting a branch to
        a random revision_id

Show diffs side-by-side

added added

removed removed

Lines of Context:
2253
2253
            " Please set BZR_SSH environment variable.")
2254
2254
 
2255
2255
 
 
2256
class GhostRevisionsHaveNoRevno(BzrError):
 
2257
    """When searching for revnos, if we encounter a ghost, we are stuck"""
 
2258
 
 
2259
    _fmt = ("Could not determine revno for {%(revision_id)s} because"
 
2260
            " its ancestry shows a ghost at {%(ghost_revision_id)s}")
 
2261
 
 
2262
    def __init__(self, revision_id, ghost_revision_id):
 
2263
        self.revision_id = revision_id
 
2264
        self.ghost_revision_id = ghost_revision_id
 
2265
 
 
2266
        
2256
2267
class GhostRevisionUnusableHere(BzrError):
2257
2268
 
2258
2269
    _fmt = "Ghost revision {%(revision_id)s} cannot be used here."