/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/workingtree_implementations/test_parents.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-10-17 05:59:11 UTC
  • mfrom: (2903.2.11 commit)
  • Revision ID: pqm@pqm.ubuntu.com-20071017055911-jots6fwy20740n0i
commit produces (but does not yet use) a basis delta and avoids one iter_entries (mbp)

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
 
251
251
 
252
252
class UpdateToOneParentViaDeltaTests(TestParents):
253
 
    """Tests for the update_to_one_parent_via_delta call.
 
253
    """Tests for the update_basis_by_delta call.
254
254
    
255
255
    This is intuitively defined as 'apply an inventory delta to the basis and
256
256
    discard other parents', but for trees that have an inventory that is not
260
260
 
261
261
    def assertDeltaApplicationResultsInExpectedBasis(self, tree, revid, delta,
262
262
        expected_inventory):
263
 
        tree.update_to_one_parent_via_delta(revid, delta)
 
263
        tree.update_basis_by_delta(revid, delta)
264
264
        # check the last revision was adjusted to rev_id
265
265
        self.assertEqual(revid, tree.last_revision())
266
266
        # check the parents are what we expect