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

  • Committer: John Carr
  • Date: 2009-01-04 12:05:20 UTC
  • mto: (0.217.35 git-serve)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: john.carr@unrouted.co.uk-20090104120520-95ql3tkttohphvfv
Fix typos

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
                #for obj in inventory_to_tree_and_blobs(repo.get_inventory(commit)):
121
121
                #    yield obj
122
122
 
123
 
                yield revision_to_commit(commit, "0"*40)
 
123
                yield revision_to_commit(rev, self.mapping, "0"*40)
124
124
 
125
125
        finally:
126
126
            repo.unlock()
133
133
    :return dulwich.objects.Commit represent the revision:
134
134
    """
135
135
    commit = Commit()
136
 
    self._tree = tree_sha
 
136
    commit._tree = tree_sha
137
137
    for p in rev.parent_ids:
138
 
        commit._parents.add(self.revision_id_bzr_to_foreign(p))
 
138
        commit._parents.append(mapping.revision_id_bzr_to_foreign(p))
139
139
    commit._message = rev.message
140
140
    commit._committer = rev.committer
141
141
    if 'author' in rev.properties:
142
142
        commit._author = rev.properties['author']
143
143
    else:
144
144
        commit._author = rev.committer
145
 
    commit._commit_timestamp = rev.timestamp
 
145
    commit._commit_time = rev.timestamp
146
146
    commit.serialize()
147
147
    return commit
148
148