Mercurial > hg
comparison mercurial/revset.py @ 38587:b62000a28812
diffutil: remove diffopts() in favor of diffallopts()
patch.diffopts() exists only for backward compatibility. We don't need it
in new module.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 06 Jul 2018 21:41:36 +0900 |
parents | 152f4822d210 |
children | 1c93e0237a24 |
comparison
equal
deleted
inserted
replaced
38586:79d7d715f3d0 | 38587:b62000a28812 |
---|---|
1803 'parents': lambda r: repo[r].parents(), | 1803 'parents': lambda r: repo[r].parents(), |
1804 'phase': lambda r: repo[r].phase(), | 1804 'phase': lambda r: repo[r].phase(), |
1805 'substate': lambda r: repo[r].substate, | 1805 'substate': lambda r: repo[r].substate, |
1806 'summary': lambda r: repo[r].description().splitlines()[0], | 1806 'summary': lambda r: repo[r].description().splitlines()[0], |
1807 'diff': lambda r: list(repo[r].diff( | 1807 'diff': lambda r: list(repo[r].diff( |
1808 opts=diffutil.diffopts(repo.ui, {'git': True}))), | 1808 opts=diffutil.diffallopts(repo.ui, {'git': True}))), |
1809 } | 1809 } |
1810 for info in fields: | 1810 for info in fields: |
1811 getfield = _funcs.get(info, None) | 1811 getfield = _funcs.get(info, None) |
1812 if getfield is None: | 1812 if getfield is None: |
1813 raise error.ParseError( | 1813 raise error.ParseError( |