Patchwork [2,of,6,V5] test: test "trouble: " line in log output with multiple troubles

login
register
mail settings
Submitter Denis Laxalde
Date Jan. 6, 2017, 3:32 p.m.
Message ID <6825cb51c2e830cbd28c.1483716745@sh77.tls.logilab.fr>
Download mbox | patch
Permalink /patch/18118/
State Accepted
Headers show

Comments

Denis Laxalde - Jan. 6, 2017, 3:32 p.m.
# HG changeset patch
# User Denis Laxalde <denis.laxalde@logilab.fr>
# Date 1483714102 -3600
#      Fri Jan 06 15:48:22 2017 +0100
# Node ID 6825cb51c2e830cbd28ca326587d1771dadf2cf2
# Parent  8cb7662ab0192840380a3ce8f521b9ff38a0bbb2
# EXP-Topic evolve-ui
test: test "trouble: " line in log output with multiple troubles

Follow-up on f05ede08dcf7.

Patch

diff --git a/tests/test-obsolete.t b/tests/test-obsolete.t
--- a/tests/test-obsolete.t
+++ b/tests/test-obsolete.t
@@ -798,6 +798,18 @@  reenable for later test
 
 #endif
 
+Several troubles on the same changeset (create an unstable and bumped changeset)
+
+  $ hg debugobsolete `getid obsolete_e`
+  $ hg debugobsolete `getid original_c` `getid babar`
+  $ hg log --config ui.logtemplate= -r 'bumped() and unstable()'
+  changeset:   7:50c51b361e60
+  user:        test
+  date:        Thu Jan 01 00:00:00 1970 +0000
+  trouble:     unstable, bumped
+  summary:     add babar
+  
+
 Test incoming/outcoming with changesets obsoleted remotely, known locally
 ===============================================================================