/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: 2019-12-23 01:39:21 UTC
  • mfrom: (7424 work)
  • mto: This revision was merged to the branch mainline in revision 7425.
  • Revision ID: jelmer@jelmer.uk-20191223013921-2kzd0wlcoylgxksk
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
        self.base = base
285
285
 
286
286
 
 
287
class NoWhoami(BzrError):
 
288
 
 
289
    _fmt = ('Unable to determine your name.\n'
 
290
            "Please, set your name with the 'whoami' command.\n"
 
291
            'E.g. brz whoami "Your Name <name@example.com>"')
 
292
 
 
293
 
287
294
class BzrCommandError(BzrError):
288
295
    """Error from user command"""
289
296
 
1865
1872
    """
1866
1873
 
1867
1874
 
 
1875
class SharedRepositoriesUnsupported(UnsupportedOperation):
 
1876
    _fmt = "Shared repositories are not supported by %(format)r."
 
1877
 
 
1878
    def __init__(self, format):
 
1879
        BzrError.__init__(self, format=format)
 
1880
 
 
1881
 
1868
1882
class GhostTagsNotSupported(BzrError):
1869
1883
 
1870
1884
    _fmt = "Ghost tags not supported by format %(format)r."
2304
2318
            ' (See brz shelve --list).%(more)s')
2305
2319
 
2306
2320
 
2307
 
class UnableCreateSymlink(BzrError):
2308
 
 
2309
 
    _fmt = 'Unable to create symlink %(path_str)son this platform'
2310
 
 
2311
 
    def __init__(self, path=None):
2312
 
        path_str = ''
2313
 
        if path:
2314
 
            try:
2315
 
                path_str = repr(str(path))
2316
 
            except UnicodeEncodeError:
2317
 
                path_str = repr(path)
2318
 
            path_str += ' '
2319
 
        self.path_str = path_str
2320
 
 
2321
 
 
2322
2321
class UnableEncodePath(BzrError):
2323
2322
 
2324
2323
    _fmt = ('Unable to encode %(kind)s path %(path)r in '