# HG changeset patch # User Boris Feld # Date 1501762614 -7200 # Node ID 2415ad7436426645db92e03ef9b77808a3c7ce76 # Parent 9fa874fb34e1334874b02036a6b545cc90b9dc05 test: add a test for stabilization related labels Differential Revision: https://phab.mercurial-scm.org/D256 diff -r 9fa874fb34e1 -r 2415ad743642 tests/test-obsolete.t --- a/tests/test-obsolete.t Fri Aug 04 19:39:34 2017 +0200 +++ b/tests/test-obsolete.t Thu Aug 03 14:16:54 2017 +0200 @@ -945,6 +945,40 @@ summary: add obsolete_e +test the obsolete labels + + $ hg log --config ui.logtemplate= --color=debug -r 'phasedivergent()' + [log.changeset changeset.draft changeset.troubled trouble.orphan trouble.phase-divergent|changeset: 7:50c51b361e60] + [log.user|user: test] + [log.date|date: Thu Jan 01 00:00:00 1970 +0000] + [log.trouble|instability: orphan, phase-divergent] + [log.summary|summary: add babar] + + + $ hg log -T default -r 'phasedivergent()' --color=debug + [log.changeset changeset.draft changeset.troubled trouble.orphantrouble.phase-divergent|changeset: 7:50c51b361e60] + [log.user|user: test] + [log.date|date: Thu Jan 01 00:00:00 1970 +0000] + [log.trouble|instability: orphan, phase-divergent] + [log.summary|summary: add babar] + + + $ hg log --config ui.logtemplate= --color=debug -r "obsolete()" + [log.changeset changeset.draft changeset.obsolete|changeset: 6:3de5eca88c00] + [log.parent changeset.draft|parent: 3:6f9641995072] + [log.user|user: test] + [log.date|date: Thu Jan 01 00:00:00 1970 +0000] + [log.summary|summary: add obsolete_e] + + + $ hg log -T default -r 'obsolete()' --color=debug + [log.changeset changeset.draft changeset.obsolete|changeset: 6:3de5eca88c00] + [log.parent changeset.draft|parent: 3:6f9641995072] + [log.user|user: test] + [log.date|date: Thu Jan 01 00:00:00 1970 +0000] + [log.summary|summary: add obsolete_e] + + test summary output $ hg up -r 'phasedivergent() and orphan()'