changeset 291:a61b19036de0

code cleanups
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 23 Jun 2010 00:40:04 +0200
parents 702c7e565c56
children d7aeae23c56d
files pylons_app/controllers/changelog.py
diffstat 1 files changed, 2 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/pylons_app/controllers/changelog.py	Wed Jun 23 00:34:22 2010 +0200
+++ b/pylons_app/controllers/changelog.py	Wed Jun 23 00:40:04 2010 +0200
@@ -3,16 +3,13 @@
 # changelog controller for pylons
 # Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
 from json import dumps
-from mercurial.graphmod import colored, CHANGESET
-from mercurial.node import short
-from mercurial.templatefilters import person
+from mercurial.graphmod import colored, CHANGESET, revisions as graph_rev
 from pylons import request, session, tmpl_context as c
 from pylons_app.lib.auth import LoginRequired
 from pylons_app.lib.base import BaseController, render
 from pylons_app.model.hg_model import HgModel
 from webhelpers.paginate import Page
 import logging
-from mercurial.graphmod import revisions as graph_rev
  
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -85,13 +82,7 @@
         for (id, type, ctx, vtx, edges) in tree:
             if type != CHANGESET:
                 continue
-            node = short(ctx.node())
-            age = ctx.date()
-            desc = ctx.description()
-            user = person(ctx.user())
-            branch = ctx.branch()
-            branch = branch, repo.repo.branchtags().get(branch) == ctx.node()
-            data.append((node, vtx, edges, desc, user, age, branch, ctx.tags()))
+            data.append(('', vtx, edges))
     
         c.jsdata = dumps(data)