/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-06-04 00:08:59 UTC
  • mfrom: (7122.6.12 win-symlink-warning)
  • Revision ID: breezy.the.bot@gmail.com-20190604000859-2xwms4tkctrj83dm
Allow symbolic links to exist when checking out trees on Windows.

Merged from https://code.launchpad.net/~jelmer/brz/win-symlink-warning/+merge/363900

Show diffs side-by-side

added added

removed removed

Lines of Context:
2303
2303
            ' (See brz shelve --list).%(more)s')
2304
2304
 
2305
2305
 
2306
 
class UnableCreateSymlink(BzrError):
2307
 
 
2308
 
    _fmt = 'Unable to create symlink %(path_str)son this platform'
2309
 
 
2310
 
    def __init__(self, path=None):
2311
 
        path_str = ''
2312
 
        if path:
2313
 
            try:
2314
 
                path_str = repr(str(path))
2315
 
            except UnicodeEncodeError:
2316
 
                path_str = repr(path)
2317
 
            path_str += ' '
2318
 
        self.path_str = path_str
2319
 
 
2320
 
 
2321
2306
class UnableEncodePath(BzrError):
2322
2307
 
2323
2308
    _fmt = ('Unable to encode %(kind)s path %(path)r in '