diff pylons_app/controllers/summary.py @ 277:7ec4463b6e53

fixed branches and tags, fetching for new vcs implementation
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 13 Jun 2010 15:56:47 +0200
parents 3782a6d698af
children 237470e64bb8
line wrap: on
line diff
--- a/pylons_app/controllers/summary.py	Fri Jun 11 16:52:00 2010 +0200
+++ b/pylons_app/controllers/summary.py	Sun Jun 13 15:56:47 2010 +0200
@@ -47,6 +47,12 @@
                                         'host':e.get('HTTP_HOST'),
                                         'repo_name':c.repo_name, }
         c.clone_repo_url = uri
-        c.repo_tags = c.repo_info.tags[:10]
-        c.repo_branches = c.repo_info.branches[:10]
+        c.repo_tags = {}
+        for name, hash in c.repo_info.tags.items()[:10]:
+            c.repo_tags[name] = c.repo_info.get_changeset(hash)
+        
+        c.repo_branches = {}
+        for name, hash in c.repo_info.branches.items()[:10]:
+            c.repo_branches[name] = c.repo_info.get_changeset(hash)
+                    
         return render('summary/summary.html')