[PATCH 3 of 7] patch: rename diffopts to diffallopts

Siddharth Agarwal sid0 at fb.com
Tue Nov 25 21:53:58 CST 2014


# HG changeset patch
# User Siddharth Agarwal <sid0 at 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.

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):


More information about the Mercurial-devel mailing list