~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Robert Collins
  • Date: 2007-09-03 02:58:58 UTC
  • mto: (2592.3.122 repository)
  • mto: This revision was merged to the branch mainline in revision 2791.
  • Revision ID: robertc@robertcollins.net-20070903025858-k2pxq3qz6ulhhtgq
 * The ``add_lines`` methods on ``VersionedFile`` implementations has changed
   its return value to include the sha1 and length of the inserted text. This
   allows the avoidance of double-sha1 calculations during commit.
   (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
351
351
            if root_id not in versionedfile:
352
352
                versionedfile[root_id] = to_store.get_weave_or_empty(root_id, 
353
353
                    self.target.get_transaction())
354
 
            parent_texts[root_id] = versionedfile[root_id].add_lines(
 
354
            _, _, parent_texts[root_id] = versionedfile[root_id].add_lines(
355
355
                revision_id, parents, [], parent_texts)
356
356
 
357
357
    def regenerate_inventory(self, revs):