~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.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:
1174
1174
    def __repr__(self):
1175
1175
        return "<%s.%s url=%s>" % (self.__module__, self.__class__.__name__, self.base)
1176
1176
 
1177
 
    def lstat(self, relpath):
1178
 
        """Like stat(), but do not follow symbolic links.
1179
 
 
1180
 
        NOTE: Might be an alias to stat() for transports that support
1181
 
        stat() but do not support symlinks.
1182
 
        """
1183
 
        raise NotImplementedError(self.lstat)
1184
 
 
1185
1177
    def stat(self, relpath):
1186
1178
        """Return the stat information for a file.
1187
1179
        WARNING: This may not be implementable for all protocols, so use