comparison rhodecode/controllers/changeset.py @ 1402:edfbf3ee9965 beta

fixes #217 Seperate Parents on Raw-changeset page
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 30 Jun 2011 01:44:58 +0200
parents 37625d304a16
children bf263968da47 87ec80c280bb
comparison
equal deleted inserted replaced
1401:b7563ad4e7ee 1402:edfbf3ee9965
240 240
241 if method == 'download': 241 if method == 'download':
242 response.content_disposition = 'attachment; filename=%s.patch' \ 242 response.content_disposition = 'attachment; filename=%s.patch' \
243 % revision 243 % revision
244 244
245 parent = True if len(c.changeset.parents) > 0 else False 245 c.parent_tmpl = ''.join(['# Parent %s\n' % x.raw_id for x in
246 c.parent_tmpl = 'Parent %s' \ 246 c.changeset.parents])
247 % c.changeset.parents[0].raw_id if parent else ''
248 247
249 c.diffs = '' 248 c.diffs = ''
250 for x in c.changes: 249 for x in c.changes:
251 c.diffs += x[2] 250 c.diffs += x[2]
252 251