Mercurial > evolve
comparison hgext/evolve.py @ 1509:405be3783fbc
evolve: ignore ui argument passed to help loader
The API changed at Mercurial e0c572d4d112.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 30 Sep 2015 23:33:00 +0900 |
parents | 6f574c76c142 |
children | b86eea66ed02 |
comparison
equal
deleted
inserted
replaced
1508:8dfb88ca0c08 | 1509:405be3783fbc |
---|---|
3544 oldcap, args = wireproto.commands['capabilities'] | 3544 oldcap, args = wireproto.commands['capabilities'] |
3545 def newcap(repo, proto): | 3545 def newcap(repo, proto): |
3546 return capabilities(oldcap, repo, proto) | 3546 return capabilities(oldcap, repo, proto) |
3547 wireproto.commands['capabilities'] = (newcap, args) | 3547 wireproto.commands['capabilities'] = (newcap, args) |
3548 | 3548 |
3549 def _helploader(): | 3549 # Mercurial >= 3.6 passes ui |
3550 def _helploader(ui=None): | |
3550 return help.gettext(evolutionhelptext) | 3551 return help.gettext(evolutionhelptext) |
3551 | 3552 |
3552 @eh.uisetup | 3553 @eh.uisetup |
3553 def _setuphelp(ui): | 3554 def _setuphelp(ui): |
3554 for entry in help.helptable: | 3555 for entry in help.helptable: |