~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_fetch.py

  • Committer: Martin Pool
  • Date: 2006-01-18 08:23:54 UTC
  • mfrom: (1185.64.9 bzr-file_involved)
  • Revision ID: mbp@sourcefrog.net-20060118082354-b28f3ecdecc245b2
[merge] goffredo's fetch/clone improvements

These speed up the operations by peeking into the inventory weave to see which
files are affected without extracting every inventory version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
        self.assertFalse(has_revision(br_a3, br_a.revision_history()[revno]))
87
87
    self.assertEqual(greedy_fetch(br_a3, br_a2, br_a.revision_history()[2])[0], 3)
88
88
    fetched = greedy_fetch(br_a3, br_a2, br_a.revision_history()[3])[0]
89
 
    self.assertEquals(fetched, 3, "fetched %d instead of 3" % fetched)
 
89
    self.assertEquals(fetched, 6, "fetched %d instead of 6" % fetched)
90
90
    # InstallFailed should be raised if the branch is missing the revision
91
91
    # that was requested.
92
92
    self.assertRaises(bzrlib.errors.InstallFailed, greedy_fetch, br_a3,