/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

  • Committer: Vincent Ladeuil
  • Date: 2007-09-17 21:08:47 UTC
  • mfrom: (2828 +trunk)
  • mto: (2851.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2852.
  • Revision ID: v.ladeuil+lp@free.fr-20070917210847-hneglal34t75toin
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2404
2404
class DefaultSMTPConnectionRefused(SMTPConnectionRefused):
2405
2405
 
2406
2406
    _fmt = "Please specify smtp_server.  No server at default %(host)s."
 
2407
 
 
2408
 
 
2409
class BzrDirError(BzrError):
 
2410
 
 
2411
    def __init__(self, bzrdir):
 
2412
        import bzrlib.urlutils as urlutils
 
2413
        display_url = urlutils.unescape_for_display(bzrdir.root_transport.base,
 
2414
                                                    'ascii')
 
2415
        BzrError.__init__(self, bzrdir=bzrdir, display_url=display_url)
 
2416
 
 
2417
 
 
2418
class AlreadyBranch(BzrDirError):
 
2419
 
 
2420
    _fmt = "'%(display_url)s' is already a branch."
 
2421
 
 
2422
 
 
2423
class AlreadyTree(BzrDirError):
 
2424
 
 
2425
    _fmt = "'%(display_url)s' is already a tree."
 
2426
 
 
2427
 
 
2428
class AlreadyCheckout(BzrDirError):
 
2429
 
 
2430
    _fmt = "'%(display_url)s' is already a checkout."
 
2431
 
 
2432
 
 
2433
class ReconfigurationNotSupported(BzrDirError):
 
2434
 
 
2435
    _fmt = "Requested reconfiguration of '%(display_url)s' is not supported."
 
2436
 
 
2437
 
 
2438
class NoBindLocation(BzrDirError):
 
2439
 
 
2440
    _fmt = "No location could be found to bind to at %(display_url)s."
 
2441
 
 
2442
 
 
2443
class UncommittedChanges(BzrError):
 
2444
 
 
2445
    _fmt = 'Working tree "%(display_url)s" has uncommitted changes.'
 
2446
 
 
2447
    def __init__(self, tree):
 
2448
        import bzrlib.urlutils as urlutils
 
2449
        display_url = urlutils.unescape_for_display(
 
2450
            tree.bzrdir.root_transport.base, 'ascii')
 
2451
        BzrError.__init__(self, tree=tree, display_url=display_url)