~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-08-30 07:36:41 UTC
  • mfrom: (5394.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100830073641-a8gnwgcuonlkdqqg
(vila) Config files in bazaar home now use a lock (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1286
1286
        # should be asked to ConnectedTransport only.
1287
1287
        return None
1288
1288
 
1289
 
    def disconnect(self):
1290
 
        # This is really needed for ConnectedTransport only, but it's easier to
1291
 
        # have Transport do nothing than testing that the disconnect should be
1292
 
        # asked to ConnectedTransport only.
1293
 
        pass
1294
 
 
1295
1289
    def _redirected_to(self, source, target):
1296
1290
        """Returns a transport suitable to re-issue a redirected request.
1297
1291
 
1556
1550
            transport = self.__class__(other_base, _from_transport=self)
1557
1551
        return transport
1558
1552
 
1559
 
    def disconnect(self):
1560
 
        """Disconnect the transport.
1561
 
 
1562
 
        If and when required the transport willl reconnect automatically.
1563
 
        """
1564
 
        raise NotImplementedError(self.disconnect)
1565
 
 
1566
1553
 
1567
1554
def get_transport(base, possible_transports=None):
1568
1555
    """Open a transport to access a URL or directory.