Mercurial > hg
changeset 23431:10223d2278f4
patch: rename diffopts to diffallopts
This is meant to be used when all features are explicitly requested. diffopts
is kept as an alias for now -- it will go away soon.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 18 Nov 2014 21:43:38 -0800 |
parents | 3821be85fd4d |
children | 27af986a332b |
files | mercurial/patch.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/patch.py Tue Nov 18 16:53:22 2014 -0800 +++ b/mercurial/patch.py Tue Nov 18 21:43:38 2014 -0800 @@ -1558,10 +1558,12 @@ class GitDiffRequired(Exception): pass -def diffopts(ui, opts=None, untrusted=False, section='diff'): +def diffallopts(ui, opts=None, untrusted=False, section='diff'): '''return diffopts with all features supported and parsed''' return difffeatureopts(ui, opts=opts, untrusted=untrusted, section=section) +diffopts = diffallopts + def difffeatureopts(ui, opts=None, untrusted=False, section='diff'): '''return diffopts with only opted-in features parsed''' def get(key, name=None, getter=ui.configbool, forceplain=None):