/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-16 08:26:29 UTC
  • mfrom: (4145.1.6 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090316082629-xuzqut3b3ur5bn3b
(robertc) Add a new repository method refresh_data to allow clean
        handling of _real_repositories after inserting a stream via the
        smart server. (Robert Collins, Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2113
2113
        made_control = self.make_bzrdir(relpath, format=format)
2114
2114
        return made_control.create_repository(shared=shared)
2115
2115
 
 
2116
    def make_smart_server(self, path):
 
2117
        smart_server = server.SmartTCPServer_for_testing()
 
2118
        smart_server.setUp(self.get_server())
 
2119
        remote_transport = get_transport(smart_server.get_url()).clone(path)
 
2120
        self.addCleanup(smart_server.tearDown)
 
2121
        return remote_transport
 
2122
 
2116
2123
    def make_branch_and_memory_tree(self, relpath, format=None):
2117
2124
        """Create a branch on the default transport and a MemoryTree for it."""
2118
2125
        b = self.make_branch(relpath, format=format)