~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: abentley
  • Date: 2006-04-21 05:52:44 UTC
  • mto: This revision was merged to the branch mainline in revision 1683.
  • Revision ID: abentley@lappy-20060421055244-2ba416dcc7539d96
Fix fileid involed tests on win32 (by skipping them for unescaped weave formats)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import tempfile
26
26
import urllib
27
27
 
 
28
from bzrlib.errors import IllegalPath
28
29
from bzrlib.trace import mutter
29
30
from bzrlib.transport import Transport, Server
30
31
from bzrlib.osutils import abspath, realpath, normpath, pathjoin, rename
100
101
        path = relpath
101
102
        try:
102
103
            path = self.abspath(relpath)
 
104
            if sys.platform=="win32" and ('<' in path or '>' in path) :
 
105
                raise IllegalPath(path)
103
106
            fp = AtomicFile(path, 'wb', new_mode=mode)
104
107
        except (IOError, OSError),e:
105
108
            self._translate_error(e, path)