~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/chroot.py

  • Committer: John Arbash Meinel
  • Date: 2010-02-17 17:11:16 UTC
  • mfrom: (4797.2.17 2.1)
  • mto: (4797.2.18 2.1)
  • mto: This revision was merged to the branch mainline in revision 5055.
  • Revision ID: john@arbash-meinel.com-20100217171116-h7t9223ystbnx5h8
merge bzr.2.1 in preparation for NEWS entry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2009 Canonical Ltd
 
1
# Copyright (C) 2006-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
48
48
    def _factory(self, url):
49
49
        return ChrootTransport(self, url)
50
50
 
51
 
    def setUp(self):
 
51
    def start_server(self):
52
52
        self.scheme = 'chroot-%d:///' % id(self)
53
53
        register_transport(self.scheme, self._factory)
54
54
 
68
68
class TestingChrootServer(ChrootServer):
69
69
 
70
70
    def __init__(self):
71
 
        """TestingChrootServer is not usable until setUp is called."""
 
71
        """TestingChrootServer is not usable until start_server is called."""
72
72
        ChrootServer.__init__(self, None)
73
73
 
74
 
    def setUp(self, backing_server=None):
 
74
    def start_server(self, backing_server=None):
75
75
        """Setup the Chroot on backing_server."""
76
76
        if backing_server is not None:
77
77
            self.backing_transport = get_transport(backing_server.get_url())
78
78
        else:
79
79
            self.backing_transport = get_transport('.')
80
 
        ChrootServer.setUp(self)
 
80
        ChrootServer.start_server(self)
81
81
 
82
82
 
83
83
def get_test_permutations():