comparison rhodecode/controllers/changelog.py @ 1203:6832ef664673 beta

source code cleanup: remove trailing white space, normalize file endings
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 03 Apr 2011 18:23:15 +0200
parents 1cecc7db3106
children a671db5bdd58
comparison
equal deleted inserted replaced
1202:eef9e273347a 1203:6832ef664673
5 5
6 changelog controller for rhodecode 6 changelog controller for rhodecode
7 7
8 :created_on: Apr 21, 2010 8 :created_on: Apr 21, 2010
9 :author: marcink 9 :author: marcink
10 :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> 10 :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
11 :license: GPLv3, see COPYING for more details. 11 :license: GPLv3, see COPYING for more details.
12 """ 12 """
13 # This program is free software; you can redistribute it and/or 13 # This program is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU General Public License 14 # modify it under the terms of the GNU General Public License
15 # as published by the Free Software Foundation; version 2 15 # as published by the Free Software Foundation; version 2
16 # of the License or (at your opinion) any later version of the license. 16 # of the License or (at your opinion) any later version of the license.
17 # 17 #
18 # This program is distributed in the hope that it will be useful, 18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of 19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details. 21 # GNU General Public License for more details.
22 # 22 #
23 # You should have received a copy of the GNU General Public License 23 # You should have received a copy of the GNU General Public License
24 # along with this program; if not, write to the Free Software 24 # along with this program; if not, write to the Free Software
25 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 25 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
26 # MA 02110-1301, USA. 26 # MA 02110-1301, USA.
27 27
78 78
79 79
80 def _graph(self, repo, repo_size, size, p): 80 def _graph(self, repo, repo_size, size, p):
81 """ 81 """
82 Generates a DAG graph for mercurial 82 Generates a DAG graph for mercurial
83 83
84 :param repo: repo instance 84 :param repo: repo instance
85 :param size: number of commits to show 85 :param size: number of commits to show
86 :param p: page number 86 :param p: page number
87 """ 87 """
88 if not repo.revisions or repo.alias == 'git': 88 if not repo.revisions or repo.alias == 'git':
101 if type != CHANGESET: 101 if type != CHANGESET:
102 continue 102 continue
103 data.append(('', vtx, edges)) 103 data.append(('', vtx, edges))
104 104
105 c.jsdata = json.dumps(data) 105 c.jsdata = json.dumps(data)
106