compat: provide an explicit default value to the 'odiff' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Mar 2018 20:13:06 +0200
changeset 3615 1ff7ff53d81f
parent 3614 9ad461df4d4d
child 3616 f6d629514607
compat: provide an explicit default value to the 'odiff' config There is a devel warning about this now.
hgext3rd/evolve/__init__.py
--- 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')