diff pylons_app/controllers/hg.py @ 80:928416088790

reimplemented summary page, added few filters, removed age from models and made it as filter.
author Marcin Kuzminski <marcin@python-blog.com>
date Sat, 17 Apr 2010 22:17:17 +0200
parents 71401840ed86
children 670713507d03
line wrap: on
line diff
--- a/pylons_app/controllers/hg.py	Sat Apr 17 19:59:06 2010 +0200
+++ b/pylons_app/controllers/hg.py	Sat Apr 17 22:17:17 2010 +0200
@@ -38,9 +38,12 @@
     def view(self, *args, **kwargs):
         #TODO: reimplement this not tu use hgwebdir
         
+        #patch for replacing mercurial servings with hg_app servings
         vcs_impl = self._get_vcs_impl(request.environ) 
         if vcs_impl:
             return vcs_impl
+        
+        
         response = g.hgapp(request.environ, self.start_response)
         
         http_accept = request.environ.get('HTTP_ACCEPT', False)
@@ -79,4 +82,7 @@
             hg_model = HgModel()
             c.repo_info = hg_model.get_repo(c.repo_name)
             c.repo_changesets = c.repo_info.get_changesets(10)
+#            c.repo_tags = c.repo_info.get_tags(limit=10)
+#            c.repo_branches = c.repo_info.get_branches(limit=10)
             return render('/summary.html')
+