diff tests/test-obsolete.t @ 37685:76cd5816268e

templates: add whyunstable template keyword
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 26 Mar 2018 17:00:12 +0800
parents 7542e97c7867
children 82eeafd78784
line wrap: on
line diff
--- a/tests/test-obsolete.t	Sat Apr 14 00:41:44 2018 -0400
+++ b/tests/test-obsolete.t	Mon Mar 26 17:00:12 2018 +0800
@@ -1044,6 +1044,15 @@
   orphan: obsolete parent 3de5eca88c00aa039da7399a220f4a5221faa585
   phase-divergent: immutable predecessor 245bde4270cd1072a27757984f9cda8ba26f08ca
 
+test whyunstable template keyword
+
+  $ hg log -r 50c51b361e60 -T '{whyunstable}\n'
+  orphan: obsolete parent 3de5eca88c00
+  phase-divergent: immutable predecessor 245bde4270cd
+  $ hg log -r 50c51b361e60 -T '{whyunstable%"{instability}: {reason} {node}\n"}'
+  orphan: obsolete parent 3de5eca88c00aa039da7399a220f4a5221faa585
+  phase-divergent: immutable predecessor 245bde4270cd1072a27757984f9cda8ba26f08ca
+
 #if serve
 
   $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log