/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

Fix storing of unusual file modes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
339
339
        parent_invs_cache[rev.revision_id] = inv
340
340
        repo.add_revision(rev.revision_id, rev)
341
341
        if "verify" in debug.debug_flags:
342
 
            objs = inventory_to_tree_and_blobs(inv, repo.texts, mapping)
 
342
            new_unusual_modes = mapping.export_unusual_file_modes(rev)
 
343
            if new_unusual_modes != unusual_modes:
 
344
                raise AssertionError("unusual modes don't match: %r != %r" % (unusual_modes, new_unusual_modes))
 
345
            objs = inventory_to_tree_and_blobs(inv, repo.texts, mapping, unusual_modes)
343
346
            for sha1, newobj, path in objs:
344
347
                assert path is not None
345
348
                oldobj = tree_lookup_path(lookup_object, root_trees[revid], path)