Submitter | Siddharth Agarwal |
---|---|
Date | Nov. 26, 2014, 3:53 a.m. |
Message ID | <738077e9f57d2cb1ca2a.1416974037@devbig136.prn2.facebook.com> |
Download | mbox | patch |
Permalink | /patch/6860/ |
State | Accepted |
Commit | 3821be85fd4d73fe399e0eb306f9b701a70f069a |
Headers | show |
Comments
Patch
diff --git mercurial/patch.py mercurial/patch.py --- mercurial/patch.py +++ mercurial/patch.py @@ -1559,6 +1559,11 @@ pass def diffopts(ui, opts=None, untrusted=False, section='diff'): + '''return diffopts with all features supported and parsed''' + return difffeatureopts(ui, opts=opts, untrusted=untrusted, section=section) + +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): if opts: v = opts.get(key)