# HG changeset patch # User Anton Shestakov # Date 1591174566 -28800 # Node ID ab5e857506eff7af081c817104d5a353366aca07 # Parent a0e0352f96e0d06b021c6ec36388e80445aa6595 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. diff -r a0e0352f96e0 -r ab5e857506ef tests/test-rewind.t --- 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 < [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