/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

Remove use of text_id.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
    # We just have to hope this is indeed utf-8:
101
101
    ie = cls(file_id, urlutils.basename(path).decode("utf-8"), parent_id)
102
102
    ie.executable = executable
103
 
    ie.text_id = hexsha
104
103
    # See if this has changed at all
105
104
    try:
106
105
        base_ie = base_inv[file_id]
108
107
        base_ie = None
109
108
        base_sha = None
110
109
    else:
111
 
        base_sha = base_ie.text_id
112
110
        try:
113
111
            if base_sha is None:
114
112
                base_sha = shagitmap.lookup_blob(file_id, base_ie.revision)
205
203
    # We just have to hope this is indeed utf-8:
206
204
    ie = InventoryDirectory(file_id, urlutils.basename(path.decode("utf-8")), 
207
205
        parent_id)
208
 
    ie.text_id = hexsha
209
206
    try:
210
207
        base_ie = base_inv[file_id]
211
208
    except NoSuchId:
215
212
        texts.add_lines((file_id, ie.revision), (), [])
216
213
        invdelta.append((None, path, file_id, ie))
217
214
    else:
218
 
        base_sha = base_ie.text_id
219
215
        # See if this has changed at all
220
216
        try:
221
217
            if base_sha is None: