Mercurial > kallithea
changeset 2450:26193dba1f0e beta
Fixed deprecation warning on dulwich commit api + fixed commit message add blank at the end
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 13 Jun 2012 21:48:00 +0200 |
parents | 08fc67c1c948 |
children | 402a96fcfa22 |
files | rhodecode/lib/vcs/backends/git/inmemory.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/vcs/backends/git/inmemory.py Wed Jun 13 19:43:03 2012 +0200 +++ b/rhodecode/lib/vcs/backends/git/inmemory.py Wed Jun 13 21:48:00 2012 +0200 @@ -83,7 +83,8 @@ curtree = newtree parent[reversed_dirnames[-1]] = DIRMOD, curtree.id else: - parent.add(node.mode, node_path, blob.id) + parent.add(name=node_path, mode=node.mode, hexsha=blob.id) + new_trees.append(parent) # Update ancestors for parent, tree, path in reversed([(a[1], b[1], b[0]) for a, b in @@ -123,7 +124,7 @@ commit.parents = [p._commit.id for p in self.parents if p] commit.author = commit.committer = safe_str(author) commit.encoding = ENCODING - commit.message = safe_str(message) + ' ' + commit.message = safe_str(message) # Compute date if date is None: