~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-04-24 07:28:16 UTC
  • mfrom: (3377.2.2 doc)
  • Revision ID: pqm@pqm.ubuntu.com-20080424072816-jjx4v6pqude11ys2
(mbp) Better help and docs for send

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
 
 
2566
2554
class AlreadyBranch(BzrDirError):
2567
2555
 
2568
2556
    _fmt = "'%(display_url)s' is already a branch."