/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 processors/generic_processor.py

fix symlink importing

Show diffs side-by-side

added added

removed removed

Lines of Context:
797
797
            ie.text_size = sum(map(len, lines))
798
798
            self.lines_for_commit[file_id] = lines
799
799
        elif isinstance(ie, inventory.InventoryLink):
800
 
            ie.symlink_target = data
 
800
            ie.symlink_target = data.encode('utf8')
 
801
            # There are no lines stored for a symlink so
 
802
            # make sure the cache used by get_lines knows that
 
803
            self.lines_for_commit[file_id] = []
801
804
        else:
802
805
            raise errors.BzrError("Cannot import items of kind '%s' yet" %
803
806
                (kind,))