/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/workingtree.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:
71
71
from .trace import mutter, note
72
72
 
73
73
 
74
 
ERROR_PATH_NOT_FOUND = 3    # WindowsError errno code, equivalent to ENOENT
75
 
 
76
 
 
77
74
class SettingFileIdUnsupported(errors.BzrError):
78
75
 
79
76
    _fmt = "This format does not support setting file ids."
129
126
    def control_transport(self):
130
127
        return self._transport
131
128
 
 
129
    def supports_symlinks(self):
 
130
        return osutils.supports_symlinks(self.basedir)
 
131
 
132
132
    def is_control_filename(self, filename):
133
133
        """True if filename is the name of a control file in this tree.
134
134
 
159
159
        return self._format.supports_merge_modified
160
160
 
161
161
    def _supports_executable(self):
162
 
        if sys.platform == 'win32':
163
 
            return False
164
 
        # FIXME: Ideally this should check the file system
165
 
        return True
 
162
        return osutils.supports_executable(self.basedir)
166
163
 
167
164
    def break_lock(self):
168
165
        """Break a lock if one is present from another instance.