/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: Aaron Bentley
  • Date: 2007-09-08 06:02:59 UTC
  • mto: This revision was merged to the branch mainline in revision 2826.
  • Revision ID: aaron.bentley@utoronto.ca-20070908060259-e1bzvj22gu66qk22
Begin work on reconfigure command

Show diffs side-by-side

added added

removed removed

Lines of Context:
2398
2398
class DefaultSMTPConnectionRefused(SMTPConnectionRefused):
2399
2399
 
2400
2400
    _fmt = "Please specify smtp_server.  No server at default %(host)s."
 
2401
 
 
2402
 
 
2403
class BzrDirError(BzrError):
 
2404
 
 
2405
    def __init__(self, bzrdir):
 
2406
        import bzrlib.urlutils as urlutils
 
2407
        display_url = urlutils.unescape_for_display(bzrdir.root_transport.base,
 
2408
                                                    'ascii')
 
2409
        BzrError.__init__(self, bzrdir=bzrdir, display_url=display_url)
 
2410
 
 
2411
 
 
2412
class AlreadyBranch(BzrDirError):
 
2413
 
 
2414
    _fmt = "'%(display_url)s' is already a branch."
 
2415
 
 
2416
 
 
2417
class ReconfigurationNotSupported(BzrDirError):
 
2418
 
 
2419
    _fmt = "Requested reconfiguration of '%(display_url)s' is not supported."
 
2420
 
 
2421
 
 
2422
class UncommittedChanges(BzrError):
 
2423
 
 
2424
    _fmt = 'Working tree "%(display_url)" has uncommitted changes.'
 
2425
 
 
2426
    def __init__(self, tree):
 
2427
        import bzrlib.urlutils as urlutils
 
2428
        display_url = urlutils.unescape_for_display(
 
2429
            tree.bzrdir.root_transport.base, 'ascii')
 
2430
        BzrError.__init__(self, tree=tree, display_url=display_url)