test: update evolution config

evolution* config has been rewritten in stabilization* in the previous patch,
update tests file to use the new names.

Differential Revision: https://phab.mercurial-scm.org/D249
This commit is contained in:
Boris Feld 2017-08-04 18:41:16 +02:00
parent 7f8b0aa44f
commit c886c86073
34 changed files with 52 additions and 52 deletions

View File

@ -11,7 +11,7 @@
#if obsstore-on
$ cat << EOF >> $HGRCPATH
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
#endif
@ -176,7 +176,7 @@ With allowunstable, amend could work in the middle of a stack
$ cat >> $HGRCPATH <<EOF
> [experimental]
> evolution=createmarkers, allowunstable
> stabilization=createmarkers, allowunstable
> EOF
$ hg amend

View File

@ -574,7 +574,7 @@ Check that bisect does not break on obsolete changesets
$ cat >> $HGRCPATH << EOF
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
tip is obsolete

View File

@ -6,7 +6,7 @@
> [phases]
> publish=False
> [experimental]
> evolution=createmarkers,exchange
> stabilization=createmarkers,exchange
> EOF
initialize

View File

@ -15,7 +15,7 @@ enable obsolescence
$ cat >> $HGRCPATH << EOF
> [experimental]
> evolution=createmarkers,exchange
> stabilization=createmarkers,exchange
> bundle2-output-capture=True
> [ui]
> ssh="$PYTHON" "$TESTDIR/dummyssh"

View File

@ -227,7 +227,7 @@ Create an extension to test bundle2 API
> [extensions]
> bundle2=$TESTTMP/bundle2.py
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> [ui]
> ssh=$PYTHON "$TESTDIR/dummyssh"
> logtemplate={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline}

View File

@ -2,7 +2,7 @@ Enable obsolete markers
$ cat >> $HGRCPATH << EOF
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> [phases]
> publish=False
> EOF

View File

@ -706,7 +706,7 @@ Create repositories to test auto sharing functionality
$ cd filteredrev0
$ cat >> .hg/hgrc << EOF
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
$ echo initial1 > foo
$ hg -q commit -A -m initial0

View File

@ -3567,7 +3567,7 @@ Test shortest(node) with the repo having short hash collision:
$ cd hashcollision
$ cat <<EOF >> .hg/hgrc
> [experimental]
> evolution = createmarkers
> stabilization = createmarkers
> EOF
$ echo 0 > a
$ hg ci -qAm 0

View File

@ -497,7 +497,7 @@ changelog and manifest would have invalid node:
$ cat >> .hg/hgrc << EOF
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
>>> import os

View File

@ -520,7 +520,7 @@ Enable obsolete
$ cat >> $HGRCPATH << EOF
> [experimental]
> evolution=createmarkers,allowunstable
> stabilization=createmarkers,allowunstable
> EOF
Amend with no files changes

View File

@ -2,7 +2,7 @@
> [extensions]
> drawdag=$TESTDIR/drawdag.py
> [experimental]
> evolution=all
> stabilization=all
> EOF
$ reinit () {

View File

@ -2290,7 +2290,7 @@ Test --hidden
$ cat >> $HGRCPATH << EOF
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
$ hg debugobsolete `hg id --debug -i -r 8`

View File

@ -494,7 +494,7 @@ amend should not be blocked by the ongoing histedit.
$ cat >>$HGRCPATH <<EOF
> [experimental]
> evolution=createmarkers,allowunstable
> stabilization=createmarkers,allowunstable
> EOF
$ hg commit --amend -m 'allow this fold'
$ hg histedit --continue

View File

@ -8,7 +8,7 @@ Enable obsolete
> [phases]
> publish=False
> [experimental]
> evolution=createmarkers,allowunstable
> stabilization=createmarkers,allowunstable
> [extensions]
> histedit=
> rebase=
@ -545,7 +545,7 @@ attempted later.
|
o 0:cb9a9f314b8b (public) a
$ hg histedit -r 'b449568bf7fc' --commands - << EOF --config experimental.evolution.track-operation=1
$ hg histedit -r 'b449568bf7fc' --commands - << EOF --config experimental.stabilization.track-operation=1
> pick b449568bf7fc 13 f
> pick 7395e1ff83bd 15 h
> pick 6b70183d2492 14 g
@ -556,7 +556,7 @@ attempted later.
Editing (ee118ab9fa44), you may commit or record as needed now.
(hg histedit --continue to resume)
[1]
$ hg histedit --continue --config experimental.evolution.track-operation=1
$ hg histedit --continue --config experimental.stabilization.track-operation=1
$ hg log -G
@ 23:175d6b286a22 (secret) k
|

View File

@ -326,7 +326,7 @@ process.
$ cd largefiles-repo-hg
$ cat >> .hg/hgrc <<EOF
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
$ hg debugobsolete `hg log -r tip -T "{node}"`
obsoleted 1 changesets

View File

@ -1700,7 +1700,7 @@ enable obsolete to test hidden feature
$ cat >> $HGRCPATH << EOF
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
$ hg log --template='{rev}:{node}\n'
@ -2280,7 +2280,7 @@ Even when the file revision is missing from some head:
$ hg init issue4490
$ cd issue4490
$ echo '[experimental]' >> .hg/hgrc
$ echo 'evolution=createmarkers' >> .hg/hgrc
$ echo 'stabilization=createmarkers' >> .hg/hgrc
$ echo a > a
$ hg ci -Am0
adding a

View File

@ -10,7 +10,7 @@ Global setup
> [phases]
> publish=False
> [experimental]
> evolution=all
> stabilization=all
> [alias]
> tlog = log -G -T '{node|short}\
> {if(predecessors, "\n Predecessors: {predecessors}")}\

View File

@ -15,10 +15,10 @@ Config setup
>
> [experimental]
> # enable evolution
> evolution = all
> stabilization = all
>
> # include obsmarkers in bundle
> evolution.bundle-obsmarker = yes
> stabilization.bundle-obsmarker = yes
>
> [extensions]
> # needed for some tests

View File

@ -3,7 +3,7 @@ test-obsolete.t)
$ cat >> $HGRCPATH << EOF
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
Push does not corrupt remote
@ -87,7 +87,7 @@ check that bundle is not affected
check-that bundle can contain markers:
$ hg bundle --hidden --rev f89bcc95eba5 --base "f89bcc95eba5^" ../f89bcc95eba5-obs.hg --config experimental.evolution.bundle-obsmarker=1
$ hg bundle --hidden --rev f89bcc95eba5 --base "f89bcc95eba5^" ../f89bcc95eba5-obs.hg --config experimental.stabilization.bundle-obsmarker=1
1 changesets found
$ hg debugbundle ../f89bcc95eba5.hg
Stream params: sortdict([('Compression', 'BZ')])

View File

@ -6,7 +6,7 @@ Check that obsolete properly strip heads
> [ui]
> logtemplate='{node|short} ({phase}) {desc|firstline}\n'
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
$ mkcommit() {
> echo "$1" > "$1"

View File

@ -9,7 +9,7 @@ Enable obsolete
> [ui]
> logtemplate = {rev}:{node|short} {desc}\n
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> [extensions]
> drawdag=$TESTDIR/drawdag.py
> [alias]

View File

@ -5,7 +5,7 @@
> mock=$TESTDIR/mockblackbox.py
>
> [experimental]
> evolution = createmarkers
> stabilization = createmarkers
> EOF
Create a repo with some tags

View File

@ -39,7 +39,7 @@ Enabling it
$ cat >> $HGRCPATH << EOF
> [experimental]
> evolution=createmarkers,exchange
> stabilization=createmarkers,exchange
> EOF
Killing a single changeset without replacement
@ -892,7 +892,7 @@ check that web.view config option:
Checking _enable=False warning if obsolete marker exists
$ echo '[experimental]' >> $HGRCPATH
$ echo "evolution=" >> $HGRCPATH
$ echo "stabilization=" >> $HGRCPATH
$ hg log -r tip
obsolete feature not enabled but 68 markers found!
68:c15e9edfca13 (draft) [tip ] add celestine
@ -900,7 +900,7 @@ Checking _enable=False warning if obsolete marker exists
reenable for later test
$ echo '[experimental]' >> $HGRCPATH
$ echo "evolution=createmarkers,exchange" >> $HGRCPATH
$ echo "stabilization=createmarkers,exchange" >> $HGRCPATH
$ rm hg.pid access.log errors.log
#endif
@ -1263,7 +1263,7 @@ Test ability to pull changeset with locally applying obsolescence markers
$ hg ci -m '2'
$ echo bar > f2
$ hg commit --amend --config experimetnal.evolution=createmarkers
$ hg commit --amend --config experimetnal.stabilization=createmarkers
$ hg log -G
@ 4:b0551702f918 (draft) [tip ] 2
|
@ -1402,7 +1402,7 @@ only a subset of those are displayed (because of --rev option)
$ echo d > d
$ hg ci -Am d
adding d
$ hg ci --amend -m dd --config experimental.evolution.track-operation=1
$ hg ci --amend -m dd --config experimental.stabilization.track-operation=1
$ hg debugobsolete --index --rev "3+7"
1 6fdef60fcbabbd3d50e9b9cbc2a240724b91a5e1 d27fb9b066076fd921277a4b9e8b9cb48c95bc6a 0 \(.*\) {'user': 'test'} (re)
3 4715cf767440ed891755448016c2b8cf70760c30 7ae79c5d60f049c7b0dd02f5f25b9d60aaf7b36d 0 \(.*\) {'operation': 'amend', 'user': 'test'} (re)

View File

@ -588,7 +588,7 @@ test hidden changeset are not cloned as public (issue3935)
(enabling evolution)
$ cat >> $HGRCPATH << EOF
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
(making a changeset hidden; H in that case)

View File

@ -98,7 +98,7 @@ A set of extension and shell functions ensures this scheduling.
> [phases]
> publish = no
> [experimental]
> evolution = all
> stabilization = all
> [alias]
> graph = log -G --rev 'sort(all(), "topo")'
> EOF

View File

@ -400,7 +400,7 @@ Test rebase with obsstore turned on and off (issue5606)
$ hg update E -q
$ echo 3 > B
$ hg commit --amend -m E -A B -q
$ hg rebase -r B+D -d . --config experimental.evolution=all
$ hg rebase -r B+D -d . --config experimental.stabilization=all
rebasing 1:112478962961 "B" (B)
merging B
warning: conflicts while merging B! (edit, then use 'hg resolve --mark')
@ -411,7 +411,7 @@ Test rebase with obsstore turned on and off (issue5606)
$ hg resolve -m
(no more unresolved files)
continue: hg rebase --continue
$ hg rebase --continue --config experimental.evolution=none
$ hg rebase --continue --config experimental.stabilization=none
rebasing 1:112478962961 "B" (B)
not rebasing ignored 2:26805aba1e60 "C" (C)
rebasing 3:f585351a92f8 "D" (D)

View File

@ -8,7 +8,7 @@ Enable obsolete
> [ui]
> logtemplate= {rev}:{node|short} {desc|firstline}
> [experimental]
> evolution=createmarkers,allowunstable
> stabilization=createmarkers,allowunstable
> [phases]
> publish=False
> [extensions]
@ -732,7 +732,7 @@ Even when the chain include missing node
|
o 0:4a2df7238c3b A
$ hg debugobsolete `hg log -r 7 -T '{node}\n'` --config experimental.evolution=all
$ hg debugobsolete `hg log -r 7 -T '{node}\n'` --config experimental.stabilization=all
obsoleted 1 changesets
$ hg rebase -d 6 -r "4::"
rebasing 4:ff2c4d47b71d "C"
@ -760,7 +760,7 @@ should display a friendly error message
$ hg add nonrelevant
$ hg commit -m nonrelevant
created new head
$ hg debugobsolete `hg log -r 11 -T '{node}\n'` --config experimental.evolution=all
$ hg debugobsolete `hg log -r 11 -T '{node}\n'` --config experimental.stabilization=all
obsoleted 1 changesets
$ hg rebase -r . -d 10
note: not rebasing 11:f44da1f4954c "nonrelevant" (tip), it has no successor
@ -885,7 +885,7 @@ Create the changes that we will rebase
$ printf "dummy" > L
$ hg add L
$ hg commit -m "dummy change"
$ hg debugobsolete `hg log -r ".^" -T '{node}'` `hg log -r 19 -T '{node}'` --config experimental.evolution=all
$ hg debugobsolete `hg log -r ".^" -T '{node}'` `hg log -r 19 -T '{node}'` --config experimental.stabilization=all
obsoleted 1 changesets
$ hg log -G -r 17::
@ -1121,7 +1121,7 @@ Test that bookmark is moved and working dir is updated when all changesets have
equivalents in destination
$ hg init rbsrepo && cd rbsrepo
$ echo "[experimental]" > .hg/hgrc
$ echo "evolution=all" >> .hg/hgrc
$ echo "stabilization=all" >> .hg/hgrc
$ echo "rebaseskipobsolete=on" >> .hg/hgrc
$ echo root > root && hg ci -Am root
adding root
@ -1140,7 +1140,7 @@ equivalents in destination
$ hg up 2 && hg log -r . # working dir is at rev 2 again
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
2:1e9a3c00cbe9 b (no-eol)
$ hg rebase -r 2 -d 3 --config experimental.evolution.track-operation=1
$ hg rebase -r 2 -d 3 --config experimental.stabilization.track-operation=1
note: not rebasing 2:1e9a3c00cbe9 "b" (mybook), already in destination as 3:be1832deae9a "b"
Check that working directory was updated to rev 3 although rev 2 was skipped
during the rebase operation

View File

@ -7,7 +7,7 @@ destination (issue5422)
> drawdag=$TESTDIR/drawdag.py
>
> [experimental]
> evolution=createmarkers,allowunstable
> stabilization=createmarkers,allowunstable
>
> [alias]
> tglog = log -G --template "{rev}: {desc}"

View File

@ -933,7 +933,7 @@ Testing rebase being called inside another transaction
> [extensions]
> wraprebase=$TESTTMP/wraprebase.py
> [experimental]
> evolution=all
> stabilization=all
> EOF
$ hg debugdrawdag <<'EOS'

View File

@ -1830,7 +1830,7 @@ Test short 'ff...' hash collision
$ cd wdir-hashcollision
$ cat <<EOF >> .hg/hgrc
> [experimental]
> evolution = createmarkers
> stabilization = createmarkers
> EOF
$ echo 0 > a
$ hg ci -qAm 0
@ -4465,7 +4465,7 @@ Test obsstore related revsets
$ cd repo1
$ cat <<EOF >> .hg/hgrc
> [experimental]
> evolution = createmarkers
> stabilization = createmarkers
> EOF
$ hg debugdrawdag <<'EOS'

View File

@ -696,7 +696,7 @@ test bug 4073 we need to enable obsolete markers for it
$ cat >> $HGRCPATH << EOF
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
$ hg shelve
shelved as default

View File

@ -1063,8 +1063,8 @@ we have reusable code here
$ cd $TESTTMP/scmutilcleanup.obsstore
$ cat >> .hg/hgrc <<EOF
> [experimental]
> evolution=all
> evolution.track-operation=1
> stabilization=all
> stabilization.track-operation=1
> EOF
$ hg log -r . -T '\n' --config extensions.t=$TESTTMP/scmutilcleanup.py

View File

@ -76,7 +76,7 @@ Enable obsolete
> [phases]
> publish=False
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
check that we can update parent repo with missing (amended) subrepo revision

View File

@ -473,7 +473,7 @@ successors should be taken in account when checking head destination
> [ui]
> logtemplate={rev}:{node|short} {desc|firstline}
> [experimental]
> evolution=createmarkers
> stabilization=createmarkers
> EOF
Test no-argument update to a successor of an obsoleted changeset