comparison mercurial/hgweb/webcommands.py @ 38226:2aa0217bb655

hgweb: fill {rename} even if ?linerange is specified Otherwise, {rename % ...} would fail. Hopefully this is the last hgweb patch so I can start fixing templater stuff.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 21 Apr 2018 17:31:03 +0900
parents c3df415037cd
children f715faeaceee
comparison
equal deleted inserted replaced
38225:c3df415037cd 38226:2aa0217bb655
1095 'parity': next(parity), 1095 'parity': next(parity),
1096 'filerev': c.rev(), 1096 'filerev': c.rev(),
1097 'file': path, 1097 'file': path,
1098 'diff': diffs, 1098 'diff': diffs,
1099 'linerange': webutil.formatlinerange(*lr), 1099 'linerange': webutil.formatlinerange(*lr),
1100 'rename': templateutil.mappinglist([]),
1100 }) 1101 })
1101 entries.append(lm) 1102 entries.append(lm)
1102 if i == revcount: 1103 if i == revcount:
1103 break 1104 break
1104 lessvars['linerange'] = webutil.formatlinerange(*lrange) 1105 lessvars['linerange'] = webutil.formatlinerange(*lrange)