~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2006-03-18 23:40:51 UTC
  • mto: This revision was merged to the branch mainline in revision 1615.
  • Revision ID: aaron.bentley@utoronto.ca-20060318234051-415e5fcb51da82e4
Allow merge against self, make fetching self a noop

Show diffs side-by-side

added added

removed removed

Lines of Context:
823
823
 
824
824
class MissingProgressBarFinish(BzrNewError):
825
825
    """A nested progress bar was not 'finished' correctly."""
 
826
 
 
827
 
 
828
class CantFetchSelf(BzrNewError):
 
829
    """Cannot fetch from a branch at %(base)s to itself."""
 
830
    def __init__(self, branch):
 
831
        BzrNewError.__init__(self)
 
832
        self.branch = branch
 
833
        self.base = branch.base