--- a/debian/rules Tue May 28 16:46:18 2019 +0800
+++ b/debian/rules Tue Jun 04 11:08:44 2019 +0200
@@ -7,7 +7,7 @@
override_dh_auto_build:
dh_auto_build
# Workaround for Sphinx in Debian Buster defaulting to Python 3
- SPHINXBUILD=/usr/share/sphinx/scripts/python2/sphinx-build $(MAKE) -C docs
+ SPHINXBUILD="python -m sphinx -bhtml" $(MAKE) -C docs
hgsrc_defined:
# Use "! -z" instead of "-n", because "-n" without arguments is true
--- a/hgext3rd/evolve/templatekw.py Tue May 28 16:46:18 2019 +0800
+++ b/hgext3rd/evolve/templatekw.py Tue Jun 04 11:08:44 2019 +0200
@@ -54,14 +54,24 @@
return templatekw.showlist('trouble', ctx.instabilities(), args,
plural='troubles')
-templatekw.keywords["precursors"] = templatekw.showpredecessors
+_sp = templatekw.showpredecessors
+def showprecursors(context, mapping):
+ return _sp(context, mapping)
+showprecursors.__doc__ = _sp._origdoc
+_tk = templatekw.templatekeyword("precursors", requires=_sp._requires)
+_tk(showprecursors)
def closestsuccessors(repo, nodeid):
""" returns the closest visible successors sets instead.
"""
return directsuccessorssets(repo, nodeid)
-templatekw.keywords["successors"] = templatekw.showsuccessorssets
+_ss = templatekw.showsuccessorssets
+def showsuccessors(context, mapping):
+ return _ss(context, mapping)
+showsuccessors.__doc__ = _ss._origdoc
+_tk = templatekw.templatekeyword("successors", requires=_ss._requires)
+_tk(showsuccessors)
def _getusername(ui):
"""the default username in the config or None"""