~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Dmitry Vasiliev
  • Date: 2007-03-02 12:28:19 UTC
  • mto: (2327.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2328.
  • Revision ID: dima@hlabs.spb.ru-20070302122819-c5cfkd4nnp5tzksp
Wrapped long lines

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
 
225
225
class InventoryModified(BzrError):
226
226
 
227
 
    _fmt = ("The current inventory for the tree %(tree)r has been modified, "
228
 
            "so a clean inventory cannot be read without data loss.")
 
227
    _fmt = ("The current inventory for the tree %(tree)r has been modified,"
 
228
            " so a clean inventory cannot be read without data loss.")
229
229
 
230
230
    internal_error = True
231
231
 
343
343
    """Used when renaming and both source and dest exist."""
344
344
 
345
345
    _fmt = ("Could not rename %(source)s => %(dest)s because both files exist."
346
 
         "%(extra)s")
 
346
            "%(extra)s")
347
347
 
348
348
    def __init__(self, source, dest, extra=None):
349
349
        BzrError.__init__(self)
787
787
 
788
788
class NotLeftParentDescendant(BzrError):
789
789
 
790
 
    _fmt = "Revision %(old_revision)s is not the left parent of"\
791
 
        " %(new_revision)s, but branch %(branch_location)s expects this"
 
790
    _fmt = ("Revision %(old_revision)s is not the left parent of"
 
791
            " %(new_revision)s, but branch %(branch_location)s expects this")
792
792
 
793
793
    internal_error = True
794
794
 
826
826
 
827
827
class AppendRevisionsOnlyViolation(BzrError):
828
828
 
829
 
    _fmt = 'Operation denied because it would change the main history, '\
830
 
           'which is not permitted by the append_revisions_only setting on'\
831
 
           ' branch "%(location)s".'
 
829
    _fmt = ('Operation denied because it would change the main history,'
 
830
           ' which is not permitted by the append_revisions_only setting on'
 
831
           ' branch "%(location)s".')
832
832
 
833
833
    def __init__(self, location):
834
834
       import bzrlib.urlutils as urlutils
1146
1146
class TooManyConcurrentRequests(BzrError):
1147
1147
 
1148
1148
    _fmt = ("The medium '%(medium)s' has reached its concurrent request limit."
1149
 
            " Be sure to finish_writing and finish_reading on the "
1150
 
            "current request that is open.")
 
1149
            " Be sure to finish_writing and finish_reading on the"
 
1150
            " current request that is open.")
1151
1151
 
1152
1152
    internal_error = True
1153
1153
 
1821
1821
 
1822
1822
class TagsNotSupported(BzrError):
1823
1823
 
1824
 
    _fmt = "Tags not supported by %(branch)s; you may be able to use bzr upgrade."
 
1824
    _fmt = ("Tags not supported by %(branch)s;"
 
1825
            " you may be able to use bzr upgrade.")
1825
1826
 
1826
1827
    def __init__(self, branch):
1827
1828
        self.branch = branch
1828
1829
 
1829
 
        
 
1830
 
1830
1831
class TagAlreadyExists(BzrError):
1831
1832
 
1832
1833
    _fmt = "Tag %(tag_name)s already exists."