/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

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
2551
2551
        BzrError.__init__(self, bzrdir=bzrdir, display_url=display_url)
2552
2552
 
2553
2553
 
 
2554
class UnsyncedBranches(BzrDirError):
 
2555
 
 
2556
    _fmt = ("'%(display_url)s' is not in sync with %(target_url)s.  See"
 
2557
            " bzr help sync-for-reconfigure.")
 
2558
 
 
2559
    def __init__(self, bzrdir, target_branch):
 
2560
        BzrDirError.__init__(self, bzrdir)
 
2561
        import bzrlib.urlutils as urlutils
 
2562
        self.target_url = urlutils.unescape_for_display(target_branch.base,
 
2563
                                                        'ascii')
 
2564
 
 
2565
 
2554
2566
class AlreadyBranch(BzrDirError):
2555
2567
 
2556
2568
    _fmt = "'%(display_url)s' is already a branch."
2571
2583
    _fmt = "'%(display_url)s' is already a lightweight checkout."
2572
2584
 
2573
2585
 
 
2586
class AlreadyUsingShared(BzrDirError):
 
2587
 
 
2588
    _fmt = "'%(display_url)s' is already using a shared repository."
 
2589
 
 
2590
 
 
2591
class AlreadyStandalone(BzrDirError):
 
2592
 
 
2593
    _fmt = "'%(display_url)s' is already standalone."
 
2594
 
 
2595
 
2574
2596
class ReconfigurationNotSupported(BzrDirError):
2575
2597
 
2576
2598
    _fmt = "Requested reconfiguration of '%(display_url)s' is not supported."