~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: Martin Pool
  • Date: 2006-04-12 04:45:32 UTC
  • mfrom: (1608.2.13 bzr.mbp.escape-stores)
  • mto: This revision was merged to the branch mainline in revision 1657.
  • Revision ID: mbp@sourcefrog.net-20060412044532-fc8c5c9408aae88b
[merge][wip] Storage escaping

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import os
22
22
import shutil
 
23
import sys
23
24
from stat import ST_MODE, S_ISDIR, ST_SIZE
24
25
import tempfile
25
26
import urllib
275
276
        except (IOError, OSError),e:
276
277
            self._translate_error(e, path)
277
278
 
 
279
    def _can_roundtrip_unix_modebits(self):
 
280
        if sys.platform == 'win32':
 
281
            # anyone else?
 
282
            return False
 
283
        else:
 
284
            return True
 
285
 
278
286
 
279
287
class ScratchTransport(LocalTransport):
280
288
    """A transport that works in a temporary dir and cleans up after itself.