Show More
@@ -3,16 +3,13 b'' | |||||
3 | # changelog controller for pylons |
|
3 | # changelog controller for pylons | |
4 | # Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> |
|
4 | # Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> | |
5 | from json import dumps |
|
5 | from json import dumps | |
6 | from mercurial.graphmod import colored, CHANGESET |
|
6 | from mercurial.graphmod import colored, CHANGESET, revisions as graph_rev | |
7 | from mercurial.node import short |
|
|||
8 | from mercurial.templatefilters import person |
|
|||
9 | from pylons import request, session, tmpl_context as c |
|
7 | from pylons import request, session, tmpl_context as c | |
10 | from pylons_app.lib.auth import LoginRequired |
|
8 | from pylons_app.lib.auth import LoginRequired | |
11 | from pylons_app.lib.base import BaseController, render |
|
9 | from pylons_app.lib.base import BaseController, render | |
12 | from pylons_app.model.hg_model import HgModel |
|
10 | from pylons_app.model.hg_model import HgModel | |
13 | from webhelpers.paginate import Page |
|
11 | from webhelpers.paginate import Page | |
14 | import logging |
|
12 | import logging | |
15 | from mercurial.graphmod import revisions as graph_rev |
|
|||
16 |
|
13 | |||
17 | # This program is free software; you can redistribute it and/or |
|
14 | # This program is free software; you can redistribute it and/or | |
18 | # modify it under the terms of the GNU General Public License |
|
15 | # modify it under the terms of the GNU General Public License | |
@@ -85,13 +82,7 b' class ChangelogController(BaseController' | |||||
85 | for (id, type, ctx, vtx, edges) in tree: |
|
82 | for (id, type, ctx, vtx, edges) in tree: | |
86 | if type != CHANGESET: |
|
83 | if type != CHANGESET: | |
87 | continue |
|
84 | continue | |
88 | node = short(ctx.node()) |
|
85 | data.append(('', vtx, edges)) | |
89 | age = ctx.date() |
|
|||
90 | desc = ctx.description() |
|
|||
91 | user = person(ctx.user()) |
|
|||
92 | branch = ctx.branch() |
|
|||
93 | branch = branch, repo.repo.branchtags().get(branch) == ctx.node() |
|
|||
94 | data.append((node, vtx, edges, desc, user, age, branch, ctx.tags())) |
|
|||
95 |
|
86 | |||
96 | c.jsdata = dumps(data) |
|
87 | c.jsdata = dumps(data) | |
97 |
|
88 |
General Comments 0
You need to be logged in to leave comments.
Login now