Changeset - 26193dba1f0e
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-06-13 21:48:00
marcin@python-works.com
Fixed deprecation warning on dulwich commit api + fixed commit message add blank at the end
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/vcs/backends/git/inmemory.py
Show inline comments
 
@@ -83,7 +83,8 @@ class GitInMemoryChangeset(BaseInMemoryC
 
                    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 @@ class GitInMemoryChangeset(BaseInMemoryC
 
        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:
0 comments (0 inline, 0 general)