changeset 2655:5a39eb37edfa beta

use raw_id in push_local action
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 22 Jul 2012 23:36:48 +0200
parents 731e823d330e
children c785ad556d44
files rhodecode/model/scm.py
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/scm.py	Sun Jul 22 20:14:30 2012 +0200
+++ b/rhodecode/model/scm.py	Sun Jul 22 23:36:48 2012 +0200
@@ -436,11 +436,8 @@
                        author=author,
                        parents=[cs], branch=cs.branch)
 
-        new_cs = tip.short_id
-        action = 'push_local:%s' % new_cs
-
+        action = 'push_local:%s' % tip.raw_id
         action_logger(user, action, repo_name)
-
         self.mark_for_invalidation(repo_name)
 
     def create_node(self, repo, repo_name, cs, user, author, message, content,
@@ -476,11 +473,9 @@
         tip = m.commit(message=message,
                        author=author,
                        parents=parents, branch=cs.branch)
-        new_cs = tip.short_id
-        action = 'push_local:%s' % new_cs
 
+        action = 'push_local:%s' % tip.raw_id
         action_logger(user, action, repo_name)
-
         self.mark_for_invalidation(repo_name)
 
     def get_nodes(self, repo_name, revision, root_path='/', flat=True):