/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/branch_implementations/test_stacking.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:
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.')