~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: Martin Pool
  • Date: 2006-02-01 12:24:35 UTC
  • mfrom: (1534.4.32 branch-formats)
  • mto: This revision was merged to the branch mainline in revision 1553.
  • Revision ID: mbp@sourcefrog.net-20060201122435-53f3efb1b5749fe1
[merge] branch-formats branch, and reconcile changes

Show diffs side-by-side

added added

removed removed

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