/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

merge bzr.dev r4029

Show diffs side-by-side

added added

removed removed

Lines of Context:
2744
2744
    _fmt = "'%(display_url)s' is already standalone."
2745
2745
 
2746
2746
 
 
2747
class AlreadyWithTrees(BzrDirError):
 
2748
 
 
2749
    _fmt = ("Shared repository '%(display_url)s' already creates "
 
2750
            "working trees.")
 
2751
 
 
2752
 
 
2753
class AlreadyWithNoTrees(BzrDirError):
 
2754
 
 
2755
    _fmt = ("Shared repository '%(display_url)s' already doesn't create "
 
2756
            "working trees.")
 
2757
 
 
2758
 
2747
2759
class ReconfigurationNotSupported(BzrDirError):
2748
2760
 
2749
2761
    _fmt = "Requested reconfiguration of '%(display_url)s' is not supported."
2934
2946
        BzrError.__init__(self, shelf_id=shelf_id)
2935
2947
 
2936
2948
 
 
2949
class InvalidShelfId(BzrError):
 
2950
 
 
2951
    _fmt = '"%(invalid_id)s" is not a valid shelf id, try a number instead.'
 
2952
 
 
2953
    def __init__(self, invalid_id):
 
2954
        BzrError.__init__(self, invalid_id=invalid_id)
 
2955
 
 
2956
 
2937
2957
class UserAbort(BzrError):
2938
2958
 
2939
2959
    _fmt = 'The user aborted the operation.'
2976
2996
    def __init__(self, file_name, view_files):
2977
2997
        self.file_name = file_name
2978
2998
        self.view_str = ", ".join(view_files)
 
2999
 
 
3000
 
 
3001
class UnresumableWriteGroup(BzrError):
 
3002
    
 
3003
    _fmt = ("Repository %(repository)s cannot resume write group "
 
3004
            "%(write_groups)r: %(reason)s")
 
3005
 
 
3006
    internal_error = True
 
3007
 
 
3008
    def __init__(self, repository, write_groups, reason):
 
3009
        self.repository = repository
 
3010
        self.write_groups = write_groups
 
3011
        self.reason = reason
 
3012
 
 
3013
 
 
3014
class UnsuspendableWriteGroup(BzrError):
 
3015
    
 
3016
    _fmt = ("Repository %(repository)s cannot suspend a write group.")
 
3017
 
 
3018
    internal_error = True
 
3019
 
 
3020
    def __init__(self, repository):
 
3021
        self.repository = repository