/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

Return mapping in revision_id_bzr_to_foreign() as required by the interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        repo = repo_dir.open_repository()
48
48
        for branch in repo.find_branches(using=True):
49
49
            #FIXME: Need to get branch path relative to its repository and use this instead of nick
50
 
            ret["refs/heads/"+branch.nick] = self.mapping.revision_id_bzr_to_foreign(branch.last_revision())
 
50
            ret["refs/heads/"+branch.nick] = self.mapping.revision_id_bzr_to_foreign(branch.last_revision())[0]
51
51
        return ret
52
52
 
53
53
    def apply_pack(self, refs, read):
148
148
    commit = Commit()
149
149
    commit._tree = tree_sha
150
150
    for p in rev.parent_ids:
151
 
        commit._parents.append(mapping.revision_id_bzr_to_foreign(p))
 
151
        commit._parents.append(mapping.revision_id_bzr_to_foreign(p)[0])
152
152
    commit._message = rev.message
153
153
    commit._committer = rev.committer
154
154
    if 'author' in rev.properties: