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

require bzr 1.13.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        self._idmap.add_entry(commit_obj.sha().hexdigest(), "commit", (revid, tree_sha))
77
77
 
78
78
    def _get_blob(self, fileid, revision):
 
79
        """Return a Git Blob object from a fileid and revision stored in bzr.
 
80
        
 
81
        :param fileid: File id of the text
 
82
        :param revision: Revision of the text
 
83
        """
79
84
        text = self.repository.texts.get_record_stream([(fileid, revision)], "unordered", True).next().get_bytes_as("fulltext")
80
85
        blob = Blob()
81
86
        blob._text = text