~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

  • Committer: Jelmer Vernooij
  • Date: 2012-01-24 03:04:58 UTC
  • mto: This revision was merged to the branch mainline in revision 6464.
  • Revision ID: jelmer@samba.org-20120124030458-aj2syolemmi6knri
Fix more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2637
2637
class TestSmartServerRepositoryGetInventories(tests.TestCaseWithTransport):
2638
2638
 
2639
2639
    def _get_serialized_inventory_delta(self, repository, base_revid, revid):
2640
 
        base_inv = repository.revision_tree(base_revid).inventory
2641
 
        inv = repository.revision_tree(revid).inventory
 
2640
        base_inv = repository.revision_tree(base_revid).root_inventory
 
2641
        inv = repository.revision_tree(revid).root_inventory
2642
2642
        inv_delta = inv._make_delta(base_inv)
2643
2643
        serializer = inventory_delta.InventoryDeltaSerializer(True, False)
2644
2644
        return "".join(serializer.delta_to_lines(base_revid, revid, inv_delta))