Patchwork [evolve-ext] evolve: ignore ui argument passed to help loader

login
register
mail settings
Submitter Yuya Nishihara
Date Sept. 30, 2015, 2:39 p.m.
Message ID <405be3783fbc91b6310f.1443623998@mimosa>
Download mbox | patch
Permalink /patch/10705/
State Accepted
Headers show

Comments

Yuya Nishihara - Sept. 30, 2015, 2:39 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1443623580 -32400
#      Wed Sep 30 23:33:00 2015 +0900
# Node ID 405be3783fbc91b6310f183061984078227b580e
# Parent  8dfb88ca0c08c2f3b084ab090195dd5e50f65ce4
evolve: ignore ui argument passed to help loader

The API changed at Mercurial e0c572d4d112.
Pierre-Yves David - Oct. 1, 2015, 2:56 a.m.
On 09/30/2015 07:39 AM, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1443623580 -32400
> #      Wed Sep 30 23:33:00 2015 +0900
> # Node ID 405be3783fbc91b6310f183061984078227b580e
> # Parent  8dfb88ca0c08c2f3b084ab090195dd5e50f65ce4
> evolve: ignore ui argument passed to help loader

Pushed to main, thanks.

Patch

diff --git a/hgext/evolve.py b/hgext/evolve.py
--- a/hgext/evolve.py
+++ b/hgext/evolve.py
@@ -3546,7 +3546,8 @@  def _installwireprotocol(ui):
         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