Show More
@@ -242,9 +242,8 b' class ChangesetController(BaseRepoContro' | |||
|
242 | 242 | response.content_disposition = 'attachment; filename=%s.patch' \ |
|
243 | 243 | % revision |
|
244 | 244 | |
|
245 | parent = True if len(c.changeset.parents) > 0 else False | |
|
246 | c.parent_tmpl = 'Parent %s' \ | |
|
247 | % c.changeset.parents[0].raw_id if parent else '' | |
|
245 | c.parent_tmpl = ''.join(['# Parent %s\n' % x.raw_id for x in | |
|
246 | c.changeset.parents]) | |
|
248 | 247 | |
|
249 | 248 | c.diffs = '' |
|
250 | 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 | 2 | # User ${c.changeset.author|n} |
|
3 | 3 | # Date ${c.changeset.date} |
|
4 | 4 | # Node ID ${c.changeset.raw_id} |
|
5 |
|
|
|
5 | ${c.parent_tmpl} | |
|
6 | 6 | ${c.changeset.message} |
|
7 | 7 | |
|
8 | 8 | ${c.diffs|n} No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now