Mercurial > evolve
changeset 4660:b62ed7c69561
branching: merge with stable
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 04 Jun 2019 11:08:44 +0200 |
parents | 4d2f8c99f23a (diff) 89c1b739fabe (current diff) |
children | df41605bd26c 194adaeb84e8 |
files | 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 |
diffstat | 2 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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"""