~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testfetch.py

  • Committer: Aaron Bentley
  • Date: 2005-10-04 04:32:32 UTC
  • mfrom: (1185.12.6)
  • mto: (1185.12.13)
  • mto: This revision was merged to the branch mainline in revision 1419.
  • Revision ID: aaron.bentley@utoronto.ca-20051004043231-40302a149769263b
merged my own changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    assert not has_revision(br_a, br_b.revision_history()[6])
55
55
    assert has_revision(br_a, br_b.revision_history()[5])
56
56
 
57
 
    # When a non-branch ancestor is missing, it should be a failure, not
58
 
    # exception
59
 
    print ("CANNOT TEST MISSING NON REVISION_HISTORY ANCESTORS WITHOUT"
60
 
           " GHOSTS")
61
 
#    br_a4 = new_branch('br_a4')
62
 
#    count, failures = greedy_fetch(br_a4, br_a)
63
 
#    self.assertEqual(count, 6)
64
 
#    self.assertEqual(failures, set((br_b.revision_history()[4],
65
 
#                                    br_b.revision_history()[5]))) 
 
57
    # When a non-branch ancestor is missing, it should be unlisted...
 
58
    # as its not present in the ancestry weave.
 
59
    br_b4 = new_branch('br_4')
 
60
    count, failures = greedy_fetch(br_b4, br_b)
 
61
    self.assertEqual(count, 7)
 
62
    self.assertEqual(failures, [])
66
63
 
67
64
    self.assertEqual(greedy_fetch(writable_a, br_b)[0], 1)
68
65
    assert has_revision(br_a, br_b.revision_history()[3])