changeset 6671:3acf490580bb stable

tests: show uncommit_source in test-uncommit-interactive.t
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 03 Feb 2024 15:23:57 -0300
parents 79ffeb56fcfa
children 5781b8fe0717 1f322c3afd13
files tests/test-uncommit-interactive.t
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-uncommit-interactive.t	Sat Feb 03 14:38:37 2024 -0300
+++ b/tests/test-uncommit-interactive.t	Sat Feb 03 15:23:57 2024 -0300
@@ -176,6 +176,9 @@
   $ hg debugobsolete
   e9635f4beaf11f64a07ccc74684092b144c53d89 0 {7733902a8d94c789ca81d866bea1893d79442db6} (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'operation': 'uncommit', 'user': 'test'}
   f70fb463d5bf9f0ffd38f105521d96e9f2591bc1 678a59e5ff90754d5e94719bd82ad169be773c21 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'note': 'note on amend --extract', 'operation': 'uncommit', 'user': 'test'}
+  $ hg log -l 2 -T '{rev}:{node|short} {join(extras, " ")}\n' --hidden
+  3:678a59e5ff90 branch=default uncommit_source=f70fb463d5bf
+  2:e9635f4beaf1 branch=default uncommit_source=f70fb463d5bf
   $ hg obslog
   @  678a59e5ff90 (3) another one
   |    amended(content) from f70fb463d5bf using uncommit by test (Thu Jan 01 00:00:00 1970 +0000)
@@ -316,6 +319,11 @@
   f70fb463d5bf9f0ffd38f105521d96e9f2591bc1 678a59e5ff90754d5e94719bd82ad169be773c21 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'note': 'note on amend --extract', 'operation': 'uncommit', 'user': 'test'}
   7ca9935a62f11b39b60c7fb8861377c7d45b3e99 0 {7733902a8d94c789ca81d866bea1893d79442db6} (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'operation': 'uncommit', 'user': 'test'}
   678a59e5ff90754d5e94719bd82ad169be773c21 ef651ea03f873a6d70aeeb9ac351d4f65c84fb3b 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'note': 'testing uncommit on dirty wdir', 'operation': 'uncommit', 'user': 'test'}
+  $ hg log -l 4 -T '{rev}:{node|short} {join(extras, " ")}\n' --hidden
+  5:ef651ea03f87 branch=default uncommit_source=678a59e5ff90
+  4:7ca9935a62f1 branch=default uncommit_source=678a59e5ff90
+  3:678a59e5ff90 branch=default uncommit_source=f70fb463d5bf
+  2:e9635f4beaf1 branch=default uncommit_source=f70fb463d5bf
   $ hg obslog
   @  ef651ea03f87 (5) another one
   |    amended(content) from 678a59e5ff90 using uncommit by test (Thu Jan 01 00:00:00 1970 +0000)