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

login
register
mail settings
Submitter Siddharth Agarwal
Date Nov. 22, 2014, 1 a.m.
Message ID <ec03d9f0198eafe89339.1416618005@devbig136.prn2.facebook.com>
Download mbox | patch
Permalink /patch/6822/
State Superseded
Commit 10223d2278f4902f465d1c3a56b8c3d6b1055512
Headers show

Comments

Siddharth Agarwal - Nov. 22, 2014, 1 a.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1416375818 28800
#      Tue Nov 18 21:43:38 2014 -0800
# Node ID ec03d9f0198eafe8933924bbeadd2586866eb9f7
# Parent  4c271ab8d6fe2786584540fbaf50317b8f7c4447
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,9 +1558,11 @@ 
 class GitDiffRequired(Exception):
     pass
 
-def diffopts(ui, opts=None, untrusted=False, section='diff'):
+def diffallopts(ui, opts=None, untrusted=False, section='diff'):
     return difffeatureopts(ui, opts=opts, untrusted=untrusted, section=section)
 
+diffopts = diffallopts
+
 def difffeatureopts(ui, opts=None, untrusted=False, section='diff'):
     def get(key, name=None, getter=ui.configbool, forceplain=None):
         if opts: