/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 breezy/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2020-03-25 20:24:54 UTC
  • mto: This revision was merged to the branch mainline in revision 7500.
  • Revision ID: jelmer@jelmer.uk-20200325202454-0h2tawn9hq1b89g3
Move InvalidRevisionSpec to breezy.revisionspec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
956
956
        self.revision_id = revision_id
957
957
 
958
958
 
959
 
class InvalidRevisionSpec(BzrError):
960
 
 
961
 
    _fmt = ("Requested revision: '%(spec)s' does not exist in branch:"
962
 
            " %(branch_url)s%(extra)s")
963
 
 
964
 
    def __init__(self, spec, branch, extra=None):
965
 
        BzrError.__init__(self, branch=branch, spec=spec)
966
 
        self.branch_url = getattr(branch, 'user_url', str(branch))
967
 
        if extra:
968
 
            self.extra = '\n' + str(extra)
969
 
        else:
970
 
            self.extra = ''
971
 
 
972
 
 
973
959
class AppendRevisionsOnlyViolation(BzrError):
974
960
 
975
961
    _fmt = ('Operation denied because it would change the main history,'