Mercurial > public > mercurial-scm > hg
comparison mercurial/utils/diffutil.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 | c88d2c9b00dd |
children |
comparison
equal
deleted
inserted
replaced
38586:79d7d715f3d0 | 38587:b62000a28812 |
---|---|
18 | 18 |
19 def diffallopts(ui, opts=None, untrusted=False, section='diff'): | 19 def diffallopts(ui, opts=None, untrusted=False, section='diff'): |
20 '''return diffopts with all features supported and parsed''' | 20 '''return diffopts with all features supported and parsed''' |
21 return difffeatureopts(ui, opts=opts, untrusted=untrusted, section=section, | 21 return difffeatureopts(ui, opts=opts, untrusted=untrusted, section=section, |
22 git=True, whitespace=True, formatchanging=True) | 22 git=True, whitespace=True, formatchanging=True) |
23 | |
24 diffopts = diffallopts | |
25 | 23 |
26 def difffeatureopts(ui, opts=None, untrusted=False, section='diff', git=False, | 24 def difffeatureopts(ui, opts=None, untrusted=False, section='diff', git=False, |
27 whitespace=False, formatchanging=False): | 25 whitespace=False, formatchanging=False): |
28 '''return diffopts with only opted-in features parsed | 26 '''return diffopts with only opted-in features parsed |
29 | 27 |