/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

Merge thin-pack work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007 Canonical Ltd
2
 
# Copyright (C) 2008-2009 Jelmer Vernooij <jelmer@samba.org>
3
 
# Copyright (C) 2008 John Carr
 
1
# Copyright (C) 2007-2008 Canonical Ltd
4
2
#
5
3
# This program is free software; you can redistribute it and/or modify
6
4
# it under the terms of the GNU General Public License as published by
135
133
 
136
134
    # stack contains the set of trees that we haven't 
137
135
    # finished constructing
 
136
 
138
137
    for path, entry in inv.iter_entries():
139
138
        while stack and not path.startswith(cur):
140
139
            tree.serialize()
189
188
        git_p = parent_lookup(p)
190
189
        if git_p is not None:
191
190
            commit._parents.append(git_p)
192
 
    commit._message = rev.message.encode("utf-8")
193
 
    commit._committer = rev.committer.encode("utf-8")
194
 
    commit._author = rev.get_apparent_authors()[0].encode("utf-8")
 
191
    commit._message = rev.message
 
192
    commit._committer = rev.committer
 
193
    if 'author' in rev.properties:
 
194
        commit._author = rev.properties['author']
 
195
    else:
 
196
        commit._author = rev.committer
195
197
    commit._commit_time = long(rev.timestamp)
196
198
    commit.serialize()
197
199
    return commit