~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Vincent Ladeuil
  • Date: 2008-12-12 13:09:26 UTC
  • mfrom: (3878.4.7 303959-redirection)
  • mto: This revision was merged to the branch mainline in revision 3903.
  • Revision ID: v.ladeuil+lp@free.fr-20081212130926-ov09evfb53npj0z0
Fix redirection related bugs: #245964, #265070, #270863 and #303959

Show diffs side-by-side

added added

removed removed

Lines of Context:
1249
1249
        # should be asked to ConnectedTransport only.
1250
1250
        return None
1251
1251
 
 
1252
    def _redirected_to(self, source, target):
 
1253
        """Returns a transport suitable to re-issue a redirected request.
 
1254
 
 
1255
        :param source: The source url as returned by the server.
 
1256
        :param target: The target url as returned by the server.
 
1257
 
 
1258
        The redirection can be handled only if the relpath involved is not
 
1259
        renamed by the redirection.
 
1260
 
 
1261
        :returns: A transport or None.
 
1262
        """
 
1263
        # This returns None by default, meaning the transport can't handle the
 
1264
        # redirection.
 
1265
        return None
 
1266
 
 
1267
 
1252
1268
 
1253
1269
class _SharedConnection(object):
1254
1270
    """A connection shared between several transports."""