diff tests/test-rewind.t @ 5449:ab5e857506ef

tests: shorten and simplify global setup section in test-rewind.t Since ui.interactive was used for just a single hg split call, it's fine to have a --config override there.
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 03 Jun 2020 16:56:06 +0800
parents a0e0352f96e0
children 64ff1b7c0481
line wrap: on
line diff
--- a/tests/test-rewind.t	Wed Jun 03 16:28:33 2020 +0800
+++ b/tests/test-rewind.t	Wed Jun 03 16:56:06 2020 +0800
@@ -1,14 +1,11 @@
-This test file test the rewind command in several situations.
+  $ . $TESTDIR/testlib/common.sh
 
 Global setup
 ============
 
-  $ . $TESTDIR/testlib/common.sh
-  $ cat >> $HGRCPATH <<EOF
-  > [ui]
-  > interactive = true
+  $ cat >> $HGRCPATH << EOF
   > [phases]
-  > publish=False
+  > publish = false
   > [alias]
   > glf = log -GT "{rev}: {desc} ({files})"
   > [extensions]
@@ -18,14 +15,12 @@
   $ hg init rewind-testing-base
   $ cd rewind-testing-base
   $ echo a > root
-  $ hg add root
-  $ hg ci -m 'c_ROOT'
+  $ hg ci -qAm 'c_ROOT'
   $ echo a > A
-  $ hg add A
-  $ hg ci -m 'c_A0'
+  $ hg ci -qAm 'c_A0'
   $ echo a > B
-  $ hg add B
-  $ hg ci -m 'c_B0'
+  $ hg ci -qAm 'c_B0'
+
   $ hg log -G
   @  changeset:   2:7e594302a05d
   |  tag:         tip
@@ -493,7 +488,7 @@
   $ echo D > D
   $ hg add C D
   $ hg ci -m 'c_CD0'
-  $ hg split << EOF
+  $ hg split --config ui.interactive=yes << EOF
   > y
   > f
   > d