~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_interrepository/test_fetch.py

  • Committer: Robert Collins
  • Date: 2010-04-08 04:34:03 UTC
  • mfrom: (5138 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5139.
  • Revision ID: robertc@robertcollins.net-20100408043403-56z0d07vdqrx7f3t
Update bugfix for 528114 to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2008 Canonical Ltd
 
1
# Copyright (C) 2008, 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
515
515
        from_tree.commit('foo', rev_id='foo-id')
516
516
        to_repo = self.make_to_repository('to')
517
517
        to_repo.fetch(from_tree.branch.repository)
518
 
        recorded_inv_sha1 = to_repo.get_inventory_sha1('foo-id')
 
518
        recorded_inv_sha1 = to_repo.get_revision('foo-id').inventory_sha1
519
519
        to_repo.lock_read()
520
520
        self.addCleanup(to_repo.unlock)
521
521
        stream = to_repo.inventories.get_record_stream([('foo-id',)],