##// END OF EJS Templates
fixes #217 Seperate Parents on Raw-changeset page
marcink -
r1402:edfbf3ee beta
parent child Browse files
Show More
@@ -242,9 +242,8 b' class ChangesetController(BaseRepoContro'
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:
@@ -1,8 +1,8 b''
1 # ${c.scm_type} changeset patch
1 # ${c.scm_type.upper()} changeset patch
2 # User ${c.changeset.author|n}
2 # User ${c.changeset.author|n}
3 # Date ${c.changeset.date}
3 # Date ${c.changeset.date}
4 # Node ID ${c.changeset.raw_id}
4 # Node ID ${c.changeset.raw_id}
5 # ${c.parent_tmpl}
5 ${c.parent_tmpl}
6 ${c.changeset.message}
6 ${c.changeset.message}
7
7
8 ${c.diffs|n} No newline at end of file
8 ${c.diffs|n}
General Comments 0
You need to be logged in to leave comments. Login now