/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/memory.py

  • Committer: Martin Pool
  • Date: 2006-02-20 22:05:28 UTC
  • mto: This revision was merged to the branch mainline in revision 1569.
  • Revision ID: mbp@sourcefrog.net-20060220220528-33bc3e992d169b4c
New DirectoryNotEmpty exception, and raise this from local and memory 
transports.

Check that some PathError is raised when trying to remove a non-empty
directory - not necessarily DirectoryNotEmpty because sftp can't detect 
it.

-- This line and the following will be ignored --

modified:
  bzrlib/errors.py
  bzrlib/tests/test_transport_implementations.py
  bzrlib/transport/__init__.py
  bzrlib/transport/memory.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
                self._translate_error(IOError(errno.EBUSY, relpath), relpath)
163
163
        for path in self._dirs:
164
164
            if path.startswith(_abspath) and path != _abspath:
165
 
                self._translate_error(IOError(errno.EBUSY, relpath), relpath)
 
165
                self._translate_error(IOError(errno.ENOTEMPTY, relpath), relpath)
166
166
        if not _abspath in self._dirs:
167
167
            raise NoSuchFile(relpath)
168
168
        del self._dirs[_abspath]