~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-21 05:22:37 UTC
  • mfrom: (2490.2.33 graphwalker)
  • Revision ID: pqm@pqm.ubuntu.com-20070621052237-2phm1z5dg4arrwnk
Avoid topological sorting in Repository.get_ancestry where possible

Show diffs side-by-side

added added

removed removed

Lines of Context:
393
393
                f.prefetch()
394
394
            return f
395
395
        except (IOError, paramiko.SSHException), e:
396
 
            self._translate_io_exception(e, path, ': error retrieving',
397
 
                failure_exc=errors.ReadError)
 
396
            self._translate_io_exception(e, path, ': error retrieving')
398
397
 
399
398
    def readv(self, relpath, offsets):
400
399
        """See Transport.readv()"""
683
682
        """Create a directory at the given path."""
684
683
        self._mkdir(self._remote_path(relpath), mode=mode)
685
684
 
686
 
    def _translate_io_exception(self, e, path, more_info='',
 
685
    def _translate_io_exception(self, e, path, more_info='', 
687
686
                                failure_exc=PathError):
688
687
        """Translate a paramiko or IOError into a friendlier exception.
689
688