~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2007-02-12 19:20:05 UTC
  • mto: (2230.3.47 branch6)
  • mto: This revision was merged to the branch mainline in revision 2290.
  • Revision ID: abentley@panoramicfeedback.com-20070212192005-2eupzrc1iz5cwc89
Improve history violation message

Show diffs side-by-side

added added

removed removed

Lines of Context:
805
805
 
806
806
class StrictHistoryViolation(BzrError):
807
807
 
808
 
    _fmt = """Applying operation would alter current history"""
 
808
    _fmt = 'Operation denied because it would change the main history, '\
 
809
           'which is not permitted by the strict_history setting on branch'\
 
810
           ' "%(location)s".'
 
811
 
 
812
    def __init__(self, location):
 
813
       import bzrlib.urlutils as urlutils
 
814
       location = urlutils.unescape_for_display(location, 'ascii')
 
815
       BzrError.__init__(self, location=location)
809
816
 
810
817
 
811
818
class DivergedBranches(BzrError):