~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_stacking.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:
126
126
        self.assertRevisionNotInRepository('mainline', new_branch_revid)
127
127
        self.assertRevisionInRepository('newbranch', new_branch_revid)
128
128
 
129
 
    # XXX: this helper probably belongs on TestCaseWithTransport
130
 
    def make_smart_server(self, path):
131
 
        smart_server = server.SmartTCPServer_for_testing()
132
 
        smart_server.setUp(self.get_server())
133
 
        remote_transport = get_transport(smart_server.get_url()).clone(path)
134
 
        self.addCleanup(smart_server.tearDown)
135
 
        return remote_transport
136
 
 
137
129
    def test_sprout_stacked_from_smart_server(self):
138
130
        if isinstance(self.branch_format, branch.BzrBranchFormat4):
139
131
            raise TestNotApplicable('Branch format 4 is not usable via HPSS.')