# HG changeset patch # User Marcin Kuzminski # Date 1277246404 -7200 # Node ID a61b19036de0722b9dddb129a13585013a88bea9 # Parent 702c7e565c56a49c89414e81f28571c8e5b67408 code cleanups diff -r 702c7e565c56 -r a61b19036de0 pylons_app/controllers/changelog.py --- 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 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)