Patchwork [3,of,7] patch: rename diffopts to diffallopts

login
register
mail settings
Submitter Siddharth Agarwal
Date Nov. 26, 2014, 3:53 a.m.
Message ID <fd40c9cc3d796042efb7.1416974038@devbig136.prn2.facebook.com>
Download mbox | patch
Permalink /patch/6861/
State Accepted
Commit 10223d2278f4902f465d1c3a56b8c3d6b1055512
Headers show

Comments

Siddharth Agarwal - Nov. 26, 2014, 3:53 a.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1416375818 28800
#      Tue Nov 18 21:43:38 2014 -0800
# Node ID fd40c9cc3d796042efb79148c1dcbdbaf073da54
# Parent  738077e9f57d2cb1ca2a3b7cd134f643b6adecff
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.

Patch

diff --git mercurial/patch.py mercurial/patch.py
--- mercurial/patch.py
+++ mercurial/patch.py
@@ -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):