~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-09 19:25:42 UTC
  • mto: (5777.5.1 inventoryworkingtree)
  • mto: This revision was merged to the branch mainline in revision 5781.
  • Revision ID: jelmer@samba.org-20110409192542-8bbedp36s7nj928e
Split InventoryTree out of Tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
            backing_transport = tests.TestCaseWithTransport.get_transport(self)
86
86
            self._chroot_server = chroot.ChrootServer(backing_transport)
87
87
            self.start_server(self._chroot_server)
88
 
        t = transport.get_transport_from_url(self._chroot_server.get_url())
 
88
        t = transport.get_transport(self._chroot_server.get_url())
89
89
        if relpath is not None:
90
90
            t = t.clone(relpath)
91
91
        return t
99
99
        # the default or a parameterized class, but rather use the
100
100
        # TestCaseWithTransport infrastructure to set up a smart server and
101
101
        # transport.
102
 
        self.overrideAttr(self, "transport_server", self.make_transport_server)
 
102
        self.transport_server = self.make_transport_server
103
103
 
104
104
    def make_transport_server(self):
105
105
        return test_server.SmartTCPServer_for_testing('-' + self.id())
932
932
        # its repository.
933
933
        self.make_tree_with_two_commits()
934
934
        rev_id_utf8 = u'\xc8'.encode('utf-8')
935
 
        self.tree.branch.set_last_revision_info(0, 'null:')
 
935
        self.tree.branch.set_revision_history([])
936
936
        self.assertEqual(
937
937
            (0, 'null:'), self.tree.branch.last_revision_info())
938
938
        # We can update the branch to a revision that is present in the