/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/repository.py

Fix RemoteToOtherFetcher to update count_copied.

Show diffs side-by-side

added added

removed removed

Lines of Context:
834
834
        Is it a substitute for fetch? 
835
835
        Should it manage its own write group ?
836
836
        """
 
837
        revisions_inserted = 0
837
838
        for item_key, bytes in stream:
838
839
            if item_key[0] == 'file':
839
840
                (file_id,) = item_key[1:]
844
845
            elif item_key == ('revisions',):
845
846
                knit = self._revision_store.get_revision_file(
846
847
                    self.get_transaction())
 
848
                revisions_inserted += 1
847
849
            elif item_key == ('signatures',):
848
850
                knit = self._revision_store.get_signature_file(
849
851
                    self.get_transaction())
865
867
                    return buffer.read(count)
866
868
            knit.insert_data_stream(
867
869
                (format, data_list, reader_func))
 
870
        return revisions_inserted
868
871
 
869
872
    @needs_read_lock
870
873
    def search_missing_revision_ids(self, other, revision_id=None, find_ghosts=True):