--- a/README Wed Apr 19 21:12:09 2017 +0900
+++ b/README Wed Apr 19 21:17:43 2017 +0900
@@ -112,6 +112,12 @@
Changelog
=========
+
+6.0.1 - in progress
+-------------------
+
+ - template: adapt to change in 4.2
+
6.0.0 -- 2017-02-31
-------------------
--- a/hgext3rd/evolve/__init__.py Wed Apr 19 21:12:09 2017 +0900
+++ b/hgext3rd/evolve/__init__.py Wed Apr 19 21:17:43 2017 +0900
@@ -436,8 +436,13 @@
""":troubles: List of strings. Evolution troubles affecting the changeset
(zero or more of "unstable", "divergent" or "bumped")."""
ctx = args['ctx']
- return templatekw.showlist('trouble', ctx.troubles(), plural='troubles',
- **args)
+ try:
+ # specify plural= explicitly to trigger TypeError on hg < 4.2
+ return templatekw.showlist('trouble', ctx.troubles(), args,
+ plural='troubles')
+ except TypeError:
+ return templatekw.showlist('trouble', ctx.troubles(), plural='troubles',
+ **args)
#####################################################################
### Various trouble warning ###