~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testfetch.py

  • Committer: Robert Collins
  • Date: 2005-10-11 02:51:15 UTC
  • mto: This revision was merged to the branch mainline in revision 1438.
  • Revision ID: robertc@robertcollins.net-20051011025115-e62a9e17c28e7f34
do not download remote ancestry.weave if the target revision we are stopping at is in our local store

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
        branch.commit("changed file")
134
134
        target = Branch.initialize("target/")
135
135
        source = Branch.open(self.get_remote_url("source/"))
136
 
        source.weave_store.enable_cache = False
137
136
        self.assertEqual(greedy_fetch(target, source), (2, []))
138
137
        # this is the path to the literal file. As format changes 
139
138
        # occur it needs to be updated. FIXME: ask the store for the
151
150
        self.assertEqual(1,
152
151
            len([log for log in self.weblogs if log.endswith(
153
152
                revision_history_suffix)]))
 
153
        for log in self.weblogs:
 
154
            print log
 
155
        self.weblogs = []
 
156
        # check there is nothing more to fetch
 
157
        source = Branch.open(self.get_remote_url("source/"))
 
158
        self.assertEqual(greedy_fetch(target, source), (0, []))
 
159
        self.failUnless(self.weblogs[0].endswith('branch-format HTTP/1.1" 200 -'))
 
160
        self.failUnless(self.weblogs[1].endswith('revision-history HTTP/1.1" 200 -'))
 
161
        self.assertEqual(2, len(self.weblogs))