Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/patch.py @ 35375:dce761558329
py3: handle keyword arguments correctly in patch.py
Differential Revision: https://phab.mercurial-scm.org/D1639
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 10 Dec 2017 04:48:00 +0530 |
parents | 4937db58b663 |
children | 82c3762349ac |
comparison
equal
deleted
inserted
replaced
35374:7354fda50e8b | 35375:dce761558329 |
---|---|
2464 return difffn(opts, None) | 2464 return difffn(opts, None) |
2465 | 2465 |
2466 def difflabel(func, *args, **kw): | 2466 def difflabel(func, *args, **kw): |
2467 '''yields 2-tuples of (output, label) based on the output of func()''' | 2467 '''yields 2-tuples of (output, label) based on the output of func()''' |
2468 inlinecolor = False | 2468 inlinecolor = False |
2469 if kw.get('opts'): | 2469 if kw.get(r'opts'): |
2470 inlinecolor = kw['opts'].worddiff | 2470 inlinecolor = kw[r'opts'].worddiff |
2471 headprefixes = [('diff', 'diff.diffline'), | 2471 headprefixes = [('diff', 'diff.diffline'), |
2472 ('copy', 'diff.extended'), | 2472 ('copy', 'diff.extended'), |
2473 ('rename', 'diff.extended'), | 2473 ('rename', 'diff.extended'), |
2474 ('old', 'diff.extended'), | 2474 ('old', 'diff.extended'), |
2475 ('new', 'diff.extended'), | 2475 ('new', 'diff.extended'), |