diff rhodecode/controllers/changeset.py @ 2084:feb0fccdcf83 beta

fixed vcs issue with last_changeset for filenodes - fixed incosistency for displaying revision in file browser - fixed raw_diff for git for single file mode - file block now uses associated changeset for both git&hg
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 01 Mar 2012 17:11:26 +0200
parents 60115135b77e
children ecd59c28f432 f47f27a6b54e
line wrap: on
line diff
--- a/rhodecode/controllers/changeset.py	Thu Mar 01 06:34:37 2012 +0200
+++ b/rhodecode/controllers/changeset.py	Thu Mar 01 17:11:26 2012 +0200
@@ -317,7 +317,7 @@
                                                 format='gitdiff').raw_diff()
 
                 cs1 = None
-                cs2 = node.last_changeset.raw_id
+                cs2 = node.changeset.raw_id
                 c.changes.append(('added', node, diff, cs1, cs2))
 
             for node in c.changeset.changed:
@@ -331,8 +331,8 @@
                     diff = diffs.DiffProcessor(f_gitdiff,
                                                 format='gitdiff').raw_diff()
 
-                cs1 = filenode_old.last_changeset.raw_id
-                cs2 = node.last_changeset.raw_id
+                cs1 = filenode_old.changeset.raw_id
+                cs2 = node.changeset.raw_id
                 c.changes.append(('changed', node, diff, cs1, cs2))
 
         response.content_type = 'text/plain'