comparison tests/test-obsolete.t @ 33773:6c1a9fd8361b

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
author Boris Feld <boris.feld@octobus.net>
date Fri, 04 Aug 2017 18:41:16 +0200
parents 511d6ae462f3
children 9dcc3529e002
comparison
equal deleted inserted replaced
33772:d434a7f0685c 33773:6c1a9fd8361b
37 37
38 Enabling it 38 Enabling it
39 39
40 $ cat >> $HGRCPATH << EOF 40 $ cat >> $HGRCPATH << EOF
41 > [experimental] 41 > [experimental]
42 > evolution=createmarkers,exchange 42 > stabilization=createmarkers,exchange
43 > EOF 43 > EOF
44 44
45 Killing a single changeset without replacement 45 Killing a single changeset without replacement
46 46
47 $ hg debugobsolete 0 47 $ hg debugobsolete 0
890 $ killdaemons.py hg.pid 890 $ killdaemons.py hg.pid
891 891
892 Checking _enable=False warning if obsolete marker exists 892 Checking _enable=False warning if obsolete marker exists
893 893
894 $ echo '[experimental]' >> $HGRCPATH 894 $ echo '[experimental]' >> $HGRCPATH
895 $ echo "evolution=" >> $HGRCPATH 895 $ echo "stabilization=" >> $HGRCPATH
896 $ hg log -r tip 896 $ hg log -r tip
897 obsolete feature not enabled but 68 markers found! 897 obsolete feature not enabled but 68 markers found!
898 68:c15e9edfca13 (draft) [tip ] add celestine 898 68:c15e9edfca13 (draft) [tip ] add celestine
899 899
900 reenable for later test 900 reenable for later test
901 901
902 $ echo '[experimental]' >> $HGRCPATH 902 $ echo '[experimental]' >> $HGRCPATH
903 $ echo "evolution=createmarkers,exchange" >> $HGRCPATH 903 $ echo "stabilization=createmarkers,exchange" >> $HGRCPATH
904 904
905 $ rm hg.pid access.log errors.log 905 $ rm hg.pid access.log errors.log
906 #endif 906 #endif
907 907
908 Several troubles on the same changeset (create an unstable and bumped changeset) 908 Several troubles on the same changeset (create an unstable and bumped changeset)
1261 $ echo foo > f2 1261 $ echo foo > f2
1262 $ hg add f2 1262 $ hg add f2
1263 $ hg ci -m '2' 1263 $ hg ci -m '2'
1264 1264
1265 $ echo bar > f2 1265 $ echo bar > f2
1266 $ hg commit --amend --config experimetnal.evolution=createmarkers 1266 $ hg commit --amend --config experimetnal.stabilization=createmarkers
1267 $ hg log -G 1267 $ hg log -G
1268 @ 4:b0551702f918 (draft) [tip ] 2 1268 @ 4:b0551702f918 (draft) [tip ] 2
1269 | 1269 |
1270 o 1:e016b03fd86f (draft) [ ] 1 1270 o 1:e016b03fd86f (draft) [ ] 1
1271 | 1271 |
1400 adding c 1400 adding c
1401 $ hg ci --amend -m cc 1401 $ hg ci --amend -m cc
1402 $ echo d > d 1402 $ echo d > d
1403 $ hg ci -Am d 1403 $ hg ci -Am d
1404 adding d 1404 adding d
1405 $ hg ci --amend -m dd --config experimental.evolution.track-operation=1 1405 $ hg ci --amend -m dd --config experimental.stabilization.track-operation=1
1406 $ hg debugobsolete --index --rev "3+7" 1406 $ hg debugobsolete --index --rev "3+7"
1407 1 6fdef60fcbabbd3d50e9b9cbc2a240724b91a5e1 d27fb9b066076fd921277a4b9e8b9cb48c95bc6a 0 \(.*\) {'user': 'test'} (re) 1407 1 6fdef60fcbabbd3d50e9b9cbc2a240724b91a5e1 d27fb9b066076fd921277a4b9e8b9cb48c95bc6a 0 \(.*\) {'user': 'test'} (re)
1408 3 4715cf767440ed891755448016c2b8cf70760c30 7ae79c5d60f049c7b0dd02f5f25b9d60aaf7b36d 0 \(.*\) {'operation': 'amend', 'user': 'test'} (re) 1408 3 4715cf767440ed891755448016c2b8cf70760c30 7ae79c5d60f049c7b0dd02f5f25b9d60aaf7b36d 0 \(.*\) {'operation': 'amend', 'user': 'test'} (re)
1409 $ hg debugobsolete --index --rev "3+7" -Tjson 1409 $ hg debugobsolete --index --rev "3+7" -Tjson
1410 [ 1410 [