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

Merge fixes for SHA1s of symlinks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        ie.revision = revision_id
151
151
        assert file_id is not None
152
152
        assert ie.revision is not None
153
 
        texts.insert_record_stream([FulltextContentFactory((file_id, ie.revision), tuple(parent_keys), ie.text_sha1, blob.data)])
 
153
        if ie.kind == 'symlink':
 
154
            data = ''
 
155
        else: 
 
156
            data = blob.data
 
157
        texts.insert_record_stream([FulltextContentFactory((file_id, ie.revision), tuple(parent_keys), ie.text_sha1, data)])
154
158
        shamap = [(hexsha, "blob", (ie.file_id, ie.revision))]
155
159
    else:
156
160
        shamap = []