~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: Martin Pool
  • Date: 2005-10-12 11:01:25 UTC
  • mto: (1185.16.26)
  • mto: This revision was merged to the branch mainline in revision 1454.
  • Revision ID: mbp@sourcefrog.net-20051012110125-95ad588eb43670c8
[pick] avoid problems in fetching when .bzr is not listable
  don't try to read the directory; tty to read things inside it
robertc@robertcollins.net-20051011034144-19aca2bd13f66055

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
            path = self.abspath(relpath)
75
75
            return open(path, 'rb')
76
76
        except IOError,e:
77
 
            if e.errno == errno.ENOENT:
78
 
                raise NoSuchFile('File %r does not exist' % path, orig_error=e)
 
77
            if e.errno in (errno.ENOENT, errno.ENOTDIR):
 
78
                raise NoSuchFile('File or directory %r does not exist' % path, orig_error=e)
79
79
            raise LocalTransportError(orig_error=e)
80
80
 
81
81
    def get_partial(self, relpath, start, length=None):