Mercurial > kallithea
comparison rhodecode/controllers/changeset.py @ 1280:215a4801bb1e beta
pep8ify + small fixes for followers page + added tooltips for followers
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 23 Apr 2011 17:22:50 +0200 |
parents | 7a0004efde12 |
children | 37625d304a16 |
comparison
equal
deleted
inserted
replaced
1279:cb216757a62d | 1280:215a4801bb1e |
---|---|
86 c.changes = OrderedDict() | 86 c.changes = OrderedDict() |
87 c.sum_added = 0 | 87 c.sum_added = 0 |
88 c.sum_removed = 0 | 88 c.sum_removed = 0 |
89 c.lines_added = 0 | 89 c.lines_added = 0 |
90 c.lines_deleted = 0 | 90 c.lines_deleted = 0 |
91 c.cut_off = False # defines if cut off limit is reached | 91 c.cut_off = False # defines if cut off limit is reached |
92 | 92 |
93 # Iterate over ranges (default changeset view is always one changeset) | 93 # Iterate over ranges (default changeset view is always one changeset) |
94 for changeset in c.cs_ranges: | 94 for changeset in c.cs_ranges: |
95 c.changes[changeset.raw_id] = [] | 95 c.changes[changeset.raw_id] = [] |
96 try: | 96 try: |
159 diff = wrap_to_table(_('Diff is to big ' | 159 diff = wrap_to_table(_('Diff is to big ' |
160 'and was cut off, see ' | 160 'and was cut off, see ' |
161 'raw diff instead')) | 161 'raw diff instead')) |
162 else: | 162 else: |
163 diff = d.as_html() | 163 diff = d.as_html() |
164 | |
165 | 164 |
166 if diff: | 165 if diff: |
167 c.sum_removed += len(diff) | 166 c.sum_removed += len(diff) |
168 else: | 167 else: |
169 diff = wrap_to_table(_('Changeset is to big and ' | 168 diff = wrap_to_table(_('Changeset is to big and ' |