~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-16 04:42:07 UTC
  • mto: (1185.50.19 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1532.
  • Revision ID: john@arbash-meinel.com-20051216044207-b1fdf835d8432d3f
Updating for new transport tests so that they pass on win32

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
from bzrlib.trace import mutter
28
28
from bzrlib.transport import Transport
29
 
from bzrlib.osutils import abspath, realpath, normpath, pathjoin
 
29
from bzrlib.osutils import abspath, realpath, normpath, pathjoin, rename
30
30
 
31
31
 
32
32
class LocalTransport(Transport):
147
147
        path_to = self.abspath(rel_to)
148
148
 
149
149
        try:
150
 
            os.rename(path_from, path_to)
 
150
            rename(path_from, path_to)
151
151
        except (IOError, OSError),e:
152
152
            # TODO: What about path_to?
153
153
            self._translate_error(e, path_from)