/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: Neil Santos
  • Date: 2010-03-04 02:43:41 UTC
  • mto: (5080.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5081.
  • Revision ID: neil_santos@users.sourceforge.net-20100304024341-ra7njxj4lzjb46rl
Removed separate lstat() and reverted LocalTransport and SFTPTransport's stat() methods to using lstat() internally.
Reworked how SFTPTransport's symlink() handles success and signals failure.
Removed lstat() declaration on the Transport base class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
475
475
            self._translate_error(e, path)
476
476
        return [urlutils.escape(entry) for entry in entries]
477
477
 
478
 
    def lstat(self, relpath):
479
 
        """Return the stat information for a file, without following symbolic links.
480
 
        """
481
 
        path = relpath
482
 
        try:
483
 
            path = self._abspath(relpath)
484
 
            return os.lstat(path)
485
 
        except (IOError, OSError),e:
486
 
            self._translate_error(e, path)
487
 
 
488
478
    def stat(self, relpath):
489
479
        """Return the stat information for a file.
490
480
        """
491
481
        path = relpath
492
482
        try:
493
483
            path = self._abspath(relpath)
494
 
            return os.stat(path)
 
484
            return os.lstat(path)
495
485
        except (IOError, OSError),e:
496
486
            self._translate_error(e, path)
497
487