/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/test_fetch.py

  • Committer: Robert Collins
  • Date: 2008-04-04 00:43:07 UTC
  • mfrom: (3331 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3333.
  • Revision ID: robertc@robertcollins.net-20080404004307-0whomfhm3yal2rvw
Resolve conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
296
296
                                                     http_logs))
297
297
        # FIXME naughty poking in there.
298
298
        self.get_readonly_server().logs = []
299
 
        # check there is nothing more to fetch
300
 
        source = Branch.open(self.get_readonly_url("source/"))
 
299
        # check there is nothing more to fetch.  We take care to re-use the
 
300
        # existing transport so that the request logs we're about to examine
 
301
        # aren't cluttered with redundant probes for a smart server.
 
302
        # XXX: Perhaps this further parameterisation: test http with smart
 
303
        # server, and test http without smart server?
 
304
        source = Branch.open(
 
305
            self.get_readonly_url("source/"),
 
306
            possible_transports=[source.bzrdir.root_transport])
301
307
        self.assertEqual(target.fetch(source), (0, []))
302
308
        # should make just two requests
303
309
        http_logs = self.get_readonly_server().logs