/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

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    # that was requested.
104
104
    self.assertRaises(errors.InstallFailed, br_a3.fetch, br_a2, 'pizza')
105
105
 
106
 
    # We try to pull a revision 'a-b-c' from a branch whose repository doesn't
107
 
    # contain a-b-c; this should give InstallFailed.  This doesn't work
108
 
    # properly for all formats but it does (should) for the current default
109
 
    # format.
110
 
    br_a2.set_last_revision_info(42, 'a-b-c')
111
 
    self.assertRaises(errors.InstallFailed, br_a3.fetch, br_a2)
112
 
 
113
 
    # TODO: ADHB 20070116 Perhaps set_last_revision shouldn't accept
114
 
    #       revisions which are not present?  In that case, this test
115
 
    #       must be rewritten.
116
 
    #
117
 
    #       RBC 20060403 the way to do this is to uncommit the revision from
118
 
    #       the repository after the commit
 
106
    # TODO: Test trying to fetch from a branch that points to a revision not
 
107
    # actually present in its repository.  Not every branch format allows you
 
108
    # to directly point to such revisions, so it's a bit complicated to
 
109
    # construct.  One way would be to uncommit and gc the revision, but not
 
110
    # every branch supports that.  -- mbp 20070814
119
111
 
120
112
    #TODO: test that fetch correctly does reweaving when needed. RBC 20051008
121
113
    # Note that this means - updating the weave when ghosts are filled in to