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

Add FOSDEM roundtripping notes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
    commit = Commit()
186
186
    commit._tree = tree_sha
187
187
    for p in rev.parent_ids:
188
 
        git_p = parent_lookup(p)
189
 
        if git_p is not None:
190
 
            commit._parents.append(git_p)
191
 
    commit._message = rev.message.encode("utf-8")
192
 
    commit._committer = rev.committer.encode("utf-8")
193
 
    commit._author = rev.get_apparent_author().encode("utf-8")
 
188
        commit._parents.append(parent_lookup(p))
 
189
    commit._message = rev.message
 
190
    commit._committer = rev.committer
 
191
    if 'author' in rev.properties:
 
192
        commit._author = rev.properties['author']
 
193
    else:
 
194
        commit._author = rev.committer
194
195
    commit._commit_time = long(rev.timestamp)
195
196
    commit.serialize()
196
197
    return commit