/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 bzrlib/transport/local.py

  • Committer: John Arbash Meinel
  • Date: 2007-07-11 23:45:20 UTC
  • mfrom: (2601 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2643.
  • Revision ID: john@arbash-meinel.com-20070711234520-do3h7zw8skbathpz
[merge] bzr.dev 2601

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    symbol_versioning,
36
36
    )
37
37
from bzrlib.trace import mutter
 
38
from bzrlib.transport import LateReadError
38
39
""")
39
40
 
40
41
from bzrlib.transport import Transport, Server
141
142
            path = self._abspath(relpath)
142
143
            return open(path, 'rb')
143
144
        except (IOError, OSError),e:
 
145
            if e.errno == errno.EISDIR:
 
146
                return LateReadError(relpath)
144
147
            self._translate_error(e, path)
145
148
 
146
149
    def put_file(self, relpath, f, mode=None):
390
393
        except (IOError, OSError),e:
391
394
            self._translate_error(e, path)
392
395
 
 
396
    def external_url(self):
 
397
        """See bzrlib.transport.Transport.external_url."""
 
398
        # File URL's are externally usable.
 
399
        return self.base
 
400
 
393
401
    def copy_to(self, relpaths, other, mode=None, pb=None):
394
402
        """Copy a set of entries from self into another Transport.
395
403