~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/chroot.py

  • Committer: v.ladeuil+lp at free
  • Date: 2007-05-18 18:20:31 UTC
  • mto: (2485.8.44 bzr.connection.sharing)
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070518182031-gbg2cgidv5l20x9p
Takes Robert comments into account.

* bzrlib/transport/ftp.py:
(FtpTransport.__init__): Write a better explanation.

* bzrlib/tests/test_init.py:
(InstrumentedTransport): Just make hooks a class attribute.
(InstrumentedTransport._get_FTP): Run hook directly in the for
loop.
(TransportHooks.run_hook, TransportHooks.uninstall_hook): Not
needed. The hooks should be cleaned up by the test itself.
(TestInit.setUp.cleanup): Resset to default hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
    def delete_tree(self, relpath):
99
99
        return self._call('delete_tree', relpath)
100
100
 
101
 
    def external_url(self):
102
 
        """See bzrlib.transport.Transport.external_url."""
103
 
        # Chroots, like MemoryTransport depend on in-process
104
 
        # state and thus the base cannot simply be handed out.
105
 
        # See the base class docstring for more details and
106
 
        # possible directions. For now we return the chrooted
107
 
        # url. 
108
 
        return self.server.backing_transport.external_url()
109
 
 
110
101
    def get(self, relpath):
111
102
        return self._call('get', relpath)
112
103