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

  • Committer: Robert Collins
  • Date: 2006-08-17 04:28:45 UTC
  • mto: (1908.6.5 use set_parent_trees.)
  • mto: This revision was merged to the branch mainline in revision 1972.
  • Revision ID: robertc@robertcollins.net-20060817042845-74baf6dc1e04b201
Add a guard against setting the tree last-revision value to a ghost in the new tree parent management api.

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
 
162
162
class InvalidRevisionId(BzrNewError):
163
163
    """Invalid revision-id {%(revision_id)s} in %(branch)s"""
 
164
 
164
165
    def __init__(self, revision_id, branch):
165
166
        # branch can be any string or object with __str__ defined
166
167
        BzrNewError.__init__(self)
1096
1097
        BzrNewError.__init__(self)
1097
1098
        self.text = text
1098
1099
 
 
1100
 
1099
1101
class UnsupportedEOLMarker(BadBundle):
1100
1102
    """End of line marker was not \\n in bzr revision-bundle"""    
1101
1103
 
1102
1104
    def __init__(self):
1103
 
        BzrNewError.__init__(self)    
 
1105
        BzrNewError.__init__(self)
 
1106
 
 
1107
 
 
1108
class GhostRevision(BzrNewError):
 
1109
    """Revision {%(revision_id)s} is a ghost."""
 
1110
 
 
1111
    def __init__(self, revision_id):
 
1112
        BzrNewError.__init__(self)
 
1113
        self.revision_id = revision_id