Skip to content
Snippets Groups Projects
Commit ab5e857506ef authored by Anton Shestakov's avatar Anton Shestakov
Browse files

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.
parent a0e0352f96e0
Branches
No related tags found
No related merge requests found
This test file test the rewind command in several situations.
$ . $TESTDIR/testlib/common.sh
Global setup
============
......@@ -2,6 +2,5 @@
Global setup
============
$ . $TESTDIR/testlib/common.sh
$ cat >> $HGRCPATH << EOF
......@@ -7,4 +6,2 @@
$ cat >> $HGRCPATH << EOF
> [ui]
> interactive = true
> [phases]
......@@ -10,5 +7,5 @@
> [phases]
> publish=False
> publish = false
> [alias]
> glf = log -GT "{rev}: {desc} ({files})"
> [extensions]
......@@ -18,6 +15,5 @@
$ 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
......@@ -23,4 +19,3 @@
$ echo a > A
$ hg add A
$ hg ci -m 'c_A0'
$ hg ci -qAm 'c_A0'
$ echo a > B
......@@ -26,6 +21,6 @@
$ 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment