/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: Robert Collins
  • Date: 2009-03-16 05:05:52 UTC
  • mto: This revision was merged to the branch mainline in revision 4149.
  • Revision ID: robertc@robertcollins.net-20090316050552-hqcgx49ugew0facc
Add a refresh_data method on Repository allowing cleaner handling of insertions into RemoteRepository objects with _real_repository instances.

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)