/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

Removed changes from bzr.ab 1526..1528

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
class UpgradeReadonly(BzrNewError):
268
268
    """Upgrade URL cannot work with readonly URL's."""
269
269
 
270
 
 
271
270
class StrictCommitFailed(Exception):
272
271
    """Commit refused because there are unknowns in the tree."""
273
272
 
274
 
 
275
273
class NoSuchRevision(BzrError):
276
274
    def __init__(self, branch, revision):
277
275
        self.branch = branch
301
299
            " specified."
302
300
        BzrCommandError.__init__(self, msg)
303
301
 
304
 
 
305
302
class NoCommonAncestor(BzrError):
306
303
    def __init__(self, revision_a, revision_b):
307
304
        msg = "Revisions have no common ancestor: %s %s." \
308
305
            % (revision_a, revision_b) 
309
306
        BzrError.__init__(self, msg)
310
307
 
311
 
 
312
308
class NoCommonRoot(BzrError):
313
309
    def __init__(self, revision_a, revision_b):
314
310
        msg = "Revisions are not derived from the same root: %s %s." \
315
311
            % (revision_a, revision_b) 
316
312
        BzrError.__init__(self, msg)
317
313
 
318
 
 
319
314
class NotAncestor(BzrError):
320
315
    def __init__(self, rev_id, not_ancestor_id):
321
316
        msg = "Revision %s is not an ancestor of %s" % (not_ancestor_id, 
339
334
        BzrError.__init__(self, msg)
340
335
        self.bases = bases
341
336
 
342
 
 
343
337
class NoCommits(BzrError):
344
338
    def __init__(self, branch):
345
339
        msg = "Branch %s has no commits." % branch
346
340
        BzrError.__init__(self, msg)
347
341
 
348
 
 
349
342
class UnlistableStore(BzrError):
350
343
    def __init__(self, store):
351
344
        BzrError.__init__(self, "Store %s is not listable" % store)
352
345
 
353
 
 
354
346
class UnlistableBranch(BzrError):
355
347
    def __init__(self, br):
356
348
        BzrError.__init__(self, "Stores for branch %s are not listable" % br)
422
414
        self.msg = msg
423
415
        self.orig_error = orig_error
424
416
 
425
 
 
426
417
# A set of semi-meaningful errors which can be thrown
427
418
class TransportNotPossible(TransportError):
428
419
    """This is for transports where a specific function is explicitly not
444
435
    """The connection has been closed."""
445
436
    pass
446
437
 
447
 
 
448
438
class ConflictsInTree(BzrError):
449
439
    def __init__(self):
450
440
        BzrError.__init__(self, "Working tree has conflicts.")
451
441
 
452
 
 
453
442
class ParseConfigError(BzrError):
454
443
    def __init__(self, errors, filename):
455
444
        if filename is None:
458
447
            (filename, ('\n'.join(e.message for e in errors)))
459
448
        BzrError.__init__(self, message)
460
449
 
461
 
 
462
450
class SigningFailed(BzrError):
463
451
    def __init__(self, command_line):
464
452
        BzrError.__init__(self, "Failed to gpg sign data with command '%s'"
465
453
                               % command_line)
466
454
 
467
 
 
468
455
class WorkingTreeNotRevision(BzrError):
469
456
    def __init__(self, tree):
470
457
        BzrError.__init__(self, "The working tree for %s has changed since"
471
458
                          " last commit, but weave merge requires that it be"
472
459
                          " unchanged." % tree.basedir)
473
460
 
474
 
 
475
461
class CantReprocessAndShowBase(BzrNewError):
476
462
    """Can't reprocess and show base.
477
463
Reprocessing obscures relationship of conflicting lines to base."""
478
464
 
479
 
 
480
465
class GraphCycleError(BzrNewError):
481
466
    """Cycle in graph %(graph)r"""
482
467
    def __init__(self, graph):
564
549
        BzrNewError.__init__(self)
565
550
        self.format = format
566
551
 
567
 
class CommandDefaultSyntax(BzrNewError):
568
 
    """Sytax error in defaults for "%(command_name)s": %(error)s"""
569
 
 
570
552
class NoDiff3(BzrNewError):
571
553
    """Diff3 is not installed on this machine."""