~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

[merge] jam-integration 1527, including branch-formats, help text, misc bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
        from bzrlib.lock import WriteLock
249
249
        return WriteLock(self.abspath(relpath))
250
250
 
 
251
    def rmdir(self, relpath):
 
252
        """See Transport.rmdir."""
 
253
        path = relpath
 
254
        try:
 
255
            path = self.abspath(relpath)
 
256
            os.rmdir(path)
 
257
        except (IOError, OSError),e:
 
258
            self._translate_error(e, path)
251
259
 
252
260
class ScratchTransport(LocalTransport):
253
261
    """A transport that works in a temporary dir and cleans up after itself.