~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Prevent losing data when reconfiguring to lightweight checkout
        (abentley)

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."