changeset 3615:1ff7ff53d81f

compat: provide an explicit default value to the 'odiff' config There is a devel warning about this now.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Mar 2018 20:13:06 +0200
parents 9ad461df4d4d
children f6d629514607
files hgext3rd/evolve/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py	Thu Mar 29 19:47:48 2018 +0200
+++ b/hgext3rd/evolve/__init__.py	Fri Mar 30 20:13:06 2018 +0200
@@ -507,7 +507,7 @@
 
 @eh.uisetup
 def _installalias(ui):
-    if ui.config('alias', 'odiff') is None:
+    if ui.config('alias', 'odiff', None) is None:
         ui.setconfig('alias', 'odiff',
                      "diff --hidden --rev 'limit(precursors(.),1)' --rev .",
                      'evolve')