Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGdce761558329: py3: handle keyword arguments correctly in patch.py
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
except GitDiffRequired: | except GitDiffRequired: | ||||
return difffn(opts.copy(git=True), None) | return difffn(opts.copy(git=True), None) | ||||
else: | else: | ||||
return difffn(opts, None) | return difffn(opts, None) | ||||
def difflabel(func, *args, **kw): | def difflabel(func, *args, **kw): | ||||
'''yields 2-tuples of (output, label) based on the output of func()''' | '''yields 2-tuples of (output, label) based on the output of func()''' | ||||
inlinecolor = False | inlinecolor = False | ||||
if kw.get('opts'): | if kw.get(r'opts'): | ||||
inlinecolor = kw['opts'].worddiff | inlinecolor = kw[r'opts'].worddiff | ||||
headprefixes = [('diff', 'diff.diffline'), | headprefixes = [('diff', 'diff.diffline'), | ||||
('copy', 'diff.extended'), | ('copy', 'diff.extended'), | ||||
('rename', 'diff.extended'), | ('rename', 'diff.extended'), | ||||
('old', 'diff.extended'), | ('old', 'diff.extended'), | ||||
('new', 'diff.extended'), | ('new', 'diff.extended'), | ||||
('deleted', 'diff.extended'), | ('deleted', 'diff.extended'), | ||||
('index', 'diff.extended'), | ('index', 'diff.extended'), | ||||
('similarity', 'diff.extended'), | ('similarity', 'diff.extended'), |