evolve: ignore ui argument passed to help loader
authorYuya Nishihara <yuya@tcha.org>
Wed, 30 Sep 2015 23:33:00 +0900
changeset 1509 405be3783fbc
parent 1508 8dfb88ca0c08
child 1510 b86eea66ed02
evolve: ignore ui argument passed to help loader The API changed at Mercurial e0c572d4d112.
hgext/evolve.py
--- a/hgext/evolve.py	Tue Sep 29 09:47:10 2015 -0700
+++ b/hgext/evolve.py	Wed Sep 30 23:33:00 2015 +0900
@@ -3546,7 +3546,8 @@
         return capabilities(oldcap, repo, proto)
     wireproto.commands['capabilities'] = (newcap, args)
 
-def _helploader():
+# Mercurial >= 3.6 passes ui
+def _helploader(ui=None):
     return help.gettext(evolutionhelptext)
 
 @eh.uisetup