branching: merge with stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 04 Jun 2019 11:08:44 +0200
changeset 4660 b62ed7c69561
parent 4659 4d2f8c99f23a (diff)
parent 4658 89c1b739fabe (current diff)
child 4661 df41605bd26c
child 4668 194adaeb84e8
branching: merge with stable
hgext3rd/evolve/templatekw.py
tests/test-evolve-orphan-corner-cases.t
tests/test-evolve-public-content-divergent-corner-cases.t
tests/test-evolve-public-content-divergent-discard.t
tests/test-evolve-public-content-divergent-main.t
tests/test-evolve-public-content-divergent.t
--- 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"""