##// END OF EJS Templates
tests: conditionalize tests for various repo features...
Gregory Szorc -
r37434:7542e97c default
parent child Browse files
Show More
@@ -142,9 +142,11 b' perfstatus'
142 $ hg perfdirstatedirs
142 $ hg perfdirstatedirs
143 $ hg perfdirstatefoldmap
143 $ hg perfdirstatefoldmap
144 $ hg perfdirstatewrite
144 $ hg perfdirstatewrite
145 #if repofncache
145 $ hg perffncacheencode
146 $ hg perffncacheencode
146 $ hg perffncacheload
147 $ hg perffncacheload
147 $ hg perffncachewrite
148 $ hg perffncachewrite
149 #endif
148 $ hg perfheads
150 $ hg perfheads
149 $ hg perfindex
151 $ hg perfindex
150 $ hg perfloadmarkers
152 $ hg perfloadmarkers
@@ -182,7 +182,8 b' break it'
182 sorting...
182 sorting...
183 converting...
183 converting...
184 4 init
184 4 init
185 ignoring: data/b.i@1e88685f5dde: no match found
185 ignoring: data/b.i@1e88685f5dde: no match found (reporevlogstore !)
186 ignoring: data/b/index@1e88685f5dde: no node (reposimplestore !)
186 3 changeall
187 3 changeall
187 2 changebagain
188 2 changebagain
188 1 merge
189 1 merge
@@ -8,6 +8,7 b''
8 $ echo a > a
8 $ echo a > a
9 $ hg ci -Am adda
9 $ hg ci -Am adda
10 adding a
10 adding a
11 #if reporevlogstore
11 $ hg debugrevlog -m
12 $ hg debugrevlog -m
12 format : 1
13 format : 1
13 flags : inline, generaldelta
14 flags : inline, generaldelta
@@ -35,12 +36,14 b''
35 uncompressed data size (min/max/avg) : 43 / 43 / 43
36 uncompressed data size (min/max/avg) : 43 / 43 / 43
36 full revision size (min/max/avg) : 44 / 44 / 44
37 full revision size (min/max/avg) : 44 / 44 / 44
37 delta size (min/max/avg) : 0 / 0 / 0
38 delta size (min/max/avg) : 0 / 0 / 0
39 #endif
38
40
39 Test debugindex, with and without the --verbose/--debug flag
41 Test debugindex, with and without the --verbose/--debug flag
40 $ hg debugindex a
42 $ hg debugindex a
41 rev linkrev nodeid p1 p2
43 rev linkrev nodeid p1 p2
42 0 0 b789fdd96dc2 000000000000 000000000000
44 0 0 b789fdd96dc2 000000000000 000000000000
43
45
46 #if no-reposimplestore
44 $ hg --verbose debugindex a
47 $ hg --verbose debugindex a
45 rev offset length linkrev nodeid p1 p2
48 rev offset length linkrev nodeid p1 p2
46 0 0 3 0 b789fdd96dc2 000000000000 000000000000
49 0 0 3 0 b789fdd96dc2 000000000000 000000000000
@@ -48,11 +51,13 b' Test debugindex, with and without the --'
48 $ hg --debug debugindex a
51 $ hg --debug debugindex a
49 rev offset length linkrev nodeid p1 p2
52 rev offset length linkrev nodeid p1 p2
50 0 0 3 0 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000
53 0 0 3 0 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000
54 #endif
51
55
52 $ hg debugindex -f 1 a
56 $ hg debugindex -f 1 a
53 rev flag size link p1 p2 nodeid
57 rev flag size link p1 p2 nodeid
54 0 0000 2 0 -1 -1 b789fdd96dc2
58 0 0000 2 0 -1 -1 b789fdd96dc2
55
59
60 #if no-reposimplestore
56 $ hg --verbose debugindex -f 1 a
61 $ hg --verbose debugindex -f 1 a
57 rev flag offset length size link p1 p2 nodeid
62 rev flag offset length size link p1 p2 nodeid
58 0 0000 0 3 2 0 -1 -1 b789fdd96dc2
63 0 0000 0 3 2 0 -1 -1 b789fdd96dc2
@@ -60,9 +65,11 b' Test debugindex, with and without the --'
60 $ hg --debug debugindex -f 1 a
65 $ hg --debug debugindex -f 1 a
61 rev flag offset length size link p1 p2 nodeid
66 rev flag offset length size link p1 p2 nodeid
62 0 0000 0 3 2 0 -1 -1 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
67 0 0000 0 3 2 0 -1 -1 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
68 #endif
63
69
64 debugdelta chain basic output
70 debugdelta chain basic output
65
71
72 #if reporevlogstore
66 $ hg debugdeltachain -m
73 $ hg debugdeltachain -m
67 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio
74 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio
68 0 1 1 -1 base 44 43 44 1.02326 44 0 0.00000
75 0 1 1 -1 base 44 43 44 1.02326 44 0 0.00000
@@ -176,6 +183,7 b' Test max chain len'
176 $ hg ci -m a
183 $ hg ci -m a
177 $ printf 'h\n' >> a
184 $ printf 'h\n' >> a
178 $ hg ci -m a
185 $ hg ci -m a
186
179 $ hg debugrevlog -d a
187 $ hg debugrevlog -d a
180 # rev p1rev p2rev start end deltastart base p1 p2 rawsize totalsize compression heads chainlen
188 # rev p1rev p2rev start end deltastart base p1 p2 rawsize totalsize compression heads chainlen
181 0 -1 -1 0 ??? 0 0 0 0 ??? ???? ? 1 0 (glob)
189 0 -1 -1 0 ??? 0 0 0 0 ??? ???? ? 1 0 (glob)
@@ -187,6 +195,7 b' Test max chain len'
187 6 5 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 1 (glob)
195 6 5 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 1 (glob)
188 7 6 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 2 (glob)
196 7 6 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 2 (glob)
189 8 7 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 3 (glob)
197 8 7 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 3 (glob)
198 #endif
190
199
191 Test debuglocks command:
200 Test debuglocks command:
192
201
@@ -470,6 +470,7 b' disable pull-based clones'
470 (remove --pull if specified or upgrade Mercurial)
470 (remove --pull if specified or upgrade Mercurial)
471 [255]
471 [255]
472
472
473 #if no-reposimplestore
473 ... but keep stream clones working
474 ... but keep stream clones working
474
475
475 $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone
476 $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone
@@ -479,6 +480,7 b' disable pull-based clones'
479 searching for changes
480 searching for changes
480 no changes found
481 no changes found
481 $ cat error.log
482 $ cat error.log
483 #endif
482
484
483 ... and also keep partial clones and pulls working
485 ... and also keep partial clones and pulls working
484 $ hg clone http://localhost:$HGPORT1 --rev 0 test-partial-clone
486 $ hg clone http://localhost:$HGPORT1 --rev 0 test-partial-clone
@@ -80,8 +80,14 b' new directories are setgid'
80 00660 ./.hg/store/00manifest.i
80 00660 ./.hg/store/00manifest.i
81 00770 ./.hg/store/data/
81 00770 ./.hg/store/data/
82 00770 ./.hg/store/data/dir/
82 00770 ./.hg/store/data/dir/
83 00660 ./.hg/store/data/dir/bar.i
83 00660 ./.hg/store/data/dir/bar.i (reporevlogstore !)
84 00660 ./.hg/store/data/foo.i
84 00660 ./.hg/store/data/foo.i (reporevlogstore !)
85 00770 ./.hg/store/data/dir/bar/ (reposimplestore !)
86 00660 ./.hg/store/data/dir/bar/b80de5d138758541c5f05265ad144ab9fa86d1db (reposimplestore !)
87 00660 ./.hg/store/data/dir/bar/index (reposimplestore !)
88 00770 ./.hg/store/data/foo/ (reposimplestore !)
89 00660 ./.hg/store/data/foo/b80de5d138758541c5f05265ad144ab9fa86d1db (reposimplestore !)
90 00660 ./.hg/store/data/foo/index (reposimplestore !)
85 00660 ./.hg/store/fncache (repofncache !)
91 00660 ./.hg/store/fncache (repofncache !)
86 00660 ./.hg/store/phaseroots
92 00660 ./.hg/store/phaseroots
87 00660 ./.hg/store/undo
93 00660 ./.hg/store/undo
@@ -126,8 +132,14 b' group can still write everything'
126 00660 ../push/.hg/store/00manifest.i
132 00660 ../push/.hg/store/00manifest.i
127 00770 ../push/.hg/store/data/
133 00770 ../push/.hg/store/data/
128 00770 ../push/.hg/store/data/dir/
134 00770 ../push/.hg/store/data/dir/
129 00660 ../push/.hg/store/data/dir/bar.i
135 00660 ../push/.hg/store/data/dir/bar.i (reporevlogstore !)
130 00660 ../push/.hg/store/data/foo.i
136 00660 ../push/.hg/store/data/foo.i (reporevlogstore !)
137 00770 ../push/.hg/store/data/dir/bar/ (reposimplestore !)
138 00660 ../push/.hg/store/data/dir/bar/b80de5d138758541c5f05265ad144ab9fa86d1db (reposimplestore !)
139 00660 ../push/.hg/store/data/dir/bar/index (reposimplestore !)
140 00770 ../push/.hg/store/data/foo/ (reposimplestore !)
141 00660 ../push/.hg/store/data/foo/b80de5d138758541c5f05265ad144ab9fa86d1db (reposimplestore !)
142 00660 ../push/.hg/store/data/foo/index (reposimplestore !)
131 00660 ../push/.hg/store/fncache (repofncache !)
143 00660 ../push/.hg/store/fncache (repofncache !)
132 00660 ../push/.hg/store/undo
144 00660 ../push/.hg/store/undo
133 00660 ../push/.hg/store/undo.backupfiles
145 00660 ../push/.hg/store/undo.backupfiles
@@ -97,7 +97,8 b' TODO: this should be successful'
97 remote: adding file changes
97 remote: adding file changes
98 remote: transaction abort!
98 remote: transaction abort!
99 remote: rollback completed
99 remote: rollback completed
100 remote: abort: data/inside2/f.i@4a1aa07735e6: unknown parent!
100 remote: abort: data/inside2/f.i@4a1aa07735e6: unknown parent! (reporevlogstore !)
101 remote: abort: data/inside2/f/index@4a1aa07735e6: no node! (reposimplestore !)
101 abort: stream ended unexpectedly (got 0 bytes, expected 4)
102 abort: stream ended unexpectedly (got 0 bytes, expected 4)
102 [255]
103 [255]
103
104
@@ -196,7 +196,9 b' widen narrow spec again, but exclude a f'
196 comparing with ssh://user@dummy/master
196 comparing with ssh://user@dummy/master
197 searching for changes
197 searching for changes
198 looking for local changes to affected paths
198 looking for local changes to affected paths
199 deleting data/dir1/dirA/bar.i
199 deleting data/dir1/dirA/bar.i (reporevlogstore !)
200 deleting data/dir1/dirA/bar/0eca1d0cbdaea4651d1d04d71976a6d2d9bfaae5 (reposimplestore !)
201 deleting data/dir1/dirA/bar/index (reposimplestore !)
200 no changes found
202 no changes found
201 saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/*-widen.hg (glob)
203 saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/*-widen.hg (glob)
202 adding changesets
204 adding changesets
@@ -254,7 +256,9 b' widen narrow spec yet again, excluding a'
254 comparing with ssh://user@dummy/master
256 comparing with ssh://user@dummy/master
255 searching for changes
257 searching for changes
256 looking for local changes to affected paths
258 looking for local changes to affected paths
257 deleting data/dir1/dirA/foo.i
259 deleting data/dir1/dirA/foo.i (reporevlogstore !)
260 deleting data/dir1/dirA/foo/162caeb3d55dceb1fee793aa631ac8c73fcb8b5e (reposimplestore !)
261 deleting data/dir1/dirA/foo/index (reposimplestore !)
258 no changes found
262 no changes found
259 saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/*-widen.hg (glob)
263 saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/*-widen.hg (glob)
260 adding changesets
264 adding changesets
@@ -116,6 +116,7 b' Also verify we can apply the bundle with'
116 $ hg strip .
116 $ hg strip .
117 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
117 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
118 saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/*-backup.hg (glob)
118 saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/*-backup.hg (glob)
119 #if repobundlerepo
119 $ hg pull .hg/strip-backup/*-backup.hg
120 $ hg pull .hg/strip-backup/*-backup.hg
120 pulling from .hg/strip-backup/*-backup.hg (glob)
121 pulling from .hg/strip-backup/*-backup.hg (glob)
121 searching for changes
122 searching for changes
@@ -131,7 +132,6 b' Also verify we can apply the bundle with'
131 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
132 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
132 saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/*-backup.hg (glob)
133 saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/*-backup.hg (glob)
133
134
134 #if repobundlerepo
135 $ hg incoming .hg/strip-backup/*-backup.hg
135 $ hg incoming .hg/strip-backup/*-backup.hg
136 comparing with .hg/strip-backup/*-backup.hg (glob)
136 comparing with .hg/strip-backup/*-backup.hg (glob)
137 changeset: 0:* (glob)
137 changeset: 0:* (glob)
@@ -1449,10 +1449,12 b' Test ability to pull changeset with loca'
1449 phase-heads -- {}
1449 phase-heads -- {}
1450 e008cf2834908e5d6b0f792a9d4b0e2272260fb8 draft
1450 e008cf2834908e5d6b0f792a9d4b0e2272260fb8 draft
1451
1451
1452 #if repobundlerepo
1452 $ hg pull .hg/strip-backup/e008cf283490-*-backup.hg
1453 $ hg pull .hg/strip-backup/e008cf283490-*-backup.hg
1453 pulling from .hg/strip-backup/e008cf283490-ede36964-backup.hg
1454 pulling from .hg/strip-backup/e008cf283490-ede36964-backup.hg
1454 searching for changes
1455 searching for changes
1455 no changes found
1456 no changes found
1457 #endif
1456 $ hg debugobsolete
1458 $ hg debugobsolete
1457 e008cf2834908e5d6b0f792a9d4b0e2272260fb8 b0551702f918510f01ae838ab03a463054c67b46 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'}
1459 e008cf2834908e5d6b0f792a9d4b0e2272260fb8 b0551702f918510f01ae838ab03a463054c67b46 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'}
1458 $ hg log -G
1460 $ hg log -G
@@ -1,4 +1,4 b''
1 #require unix-permissions no-root
1 #require unix-permissions no-root reporevlogstore
2
2
3 $ hg init t
3 $ hg init t
4 $ cd t
4 $ cd t
@@ -539,6 +539,7 b' initial setup'
539
539
540 Pulling from bundle does not alter phases of changeset not present in the bundle
540 Pulling from bundle does not alter phases of changeset not present in the bundle
541
541
542 #if repobundlerepo
542 $ hg bundle --base 1 -r 6 -r 3 ../partial-bundle.hg
543 $ hg bundle --base 1 -r 6 -r 3 ../partial-bundle.hg
543 5 changesets found
544 5 changesets found
544 $ hg pull ../partial-bundle.hg
545 $ hg pull ../partial-bundle.hg
@@ -568,6 +569,7 b' Pulling from bundle does not alter phase'
568 |
569 |
569 o 0 public a-A - 054250a37db4
570 o 0 public a-A - 054250a37db4
570
571
572 #endif
571
573
572 Pushing to Publish=False (unknown changeset)
574 Pushing to Publish=False (unknown changeset)
573
575
@@ -742,12 +742,14 b" Verify bundles don't get overwritten:"
742 saved backup bundle to $TESTTMP/doublebundle/.hg/strip-backup/3903775176ed-e68910bd-backup.hg
742 saved backup bundle to $TESTTMP/doublebundle/.hg/strip-backup/3903775176ed-e68910bd-backup.hg
743 $ ls .hg/strip-backup
743 $ ls .hg/strip-backup
744 3903775176ed-e68910bd-backup.hg
744 3903775176ed-e68910bd-backup.hg
745 #if repobundlerepo
745 $ hg pull -q -r 3903775176ed .hg/strip-backup/3903775176ed-e68910bd-backup.hg
746 $ hg pull -q -r 3903775176ed .hg/strip-backup/3903775176ed-e68910bd-backup.hg
746 $ hg strip -r 0
747 $ hg strip -r 0
747 saved backup bundle to $TESTTMP/doublebundle/.hg/strip-backup/3903775176ed-54390173-backup.hg
748 saved backup bundle to $TESTTMP/doublebundle/.hg/strip-backup/3903775176ed-54390173-backup.hg
748 $ ls .hg/strip-backup
749 $ ls .hg/strip-backup
749 3903775176ed-54390173-backup.hg
750 3903775176ed-54390173-backup.hg
750 3903775176ed-e68910bd-backup.hg
751 3903775176ed-e68910bd-backup.hg
752 #endif
751 $ cd ..
753 $ cd ..
752
754
753 Test that we only bundle the stripped changesets (issue4736)
755 Test that we only bundle the stripped changesets (issue4736)
@@ -813,6 +815,7 b' Check bundle behavior:'
813
815
814 $ hg bundle -r 'desc(mergeCD)' --base 'desc(commitC)' ../issue4736.hg
816 $ hg bundle -r 'desc(mergeCD)' --base 'desc(commitC)' ../issue4736.hg
815 2 changesets found
817 2 changesets found
818 #if repobundlerepo
816 $ hg log -r 'bundle()' -R ../issue4736.hg
819 $ hg log -r 'bundle()' -R ../issue4736.hg
817 changeset: 3:6625a5168474
820 changeset: 3:6625a5168474
818 parent: 1:eca11cf91c71
821 parent: 1:eca11cf91c71
@@ -828,6 +831,7 b' Check bundle behavior:'
828 date: Thu Jan 01 00:00:00 1970 +0000
831 date: Thu Jan 01 00:00:00 1970 +0000
829 summary: mergeCD
832 summary: mergeCD
830
833
834 #endif
831
835
832 check strip behavior
836 check strip behavior
833
837
@@ -872,6 +876,7 b' check strip behavior'
872
876
873 strip backup content
877 strip backup content
874
878
879 #if repobundlerepo
875 $ hg log -r 'bundle()' -R .hg/strip-backup/6625a5168474-*-backup.hg
880 $ hg log -r 'bundle()' -R .hg/strip-backup/6625a5168474-*-backup.hg
876 changeset: 3:6625a5168474
881 changeset: 3:6625a5168474
877 parent: 1:eca11cf91c71
882 parent: 1:eca11cf91c71
@@ -887,6 +892,9 b' strip backup content'
887 date: Thu Jan 01 00:00:00 1970 +0000
892 date: Thu Jan 01 00:00:00 1970 +0000
888 summary: mergeCD
893 summary: mergeCD
889
894
895
896 #endif
897
890 Check that the phase cache is properly invalidated after a strip with bookmark.
898 Check that the phase cache is properly invalidated after a strip with bookmark.
891
899
892 $ cat > ../stripstalephasecache.py << EOF
900 $ cat > ../stripstalephasecache.py << EOF
@@ -183,12 +183,12 b' Clone main'
183 updating [===========================================>] 3/3\r (no-eol) (esc)
183 updating [===========================================>] 3/3\r (no-eol) (esc)
184 \r (no-eol) (esc)
184 \r (no-eol) (esc)
185 \r (no-eol) (esc)
185 \r (no-eol) (esc)
186 linking [ <=> ] 1\r (no-eol) (esc) (no-reposimplestore !)
186 linking [ <=> ] 1\r (no-eol) (esc) (reporevlogstore !)
187 linking [ <=> ] 2\r (no-eol) (esc) (no-reposimplestore !)
187 linking [ <=> ] 2\r (no-eol) (esc) (reporevlogstore !)
188 linking [ <=> ] 3\r (no-eol) (esc) (no-reposimplestore !)
188 linking [ <=> ] 3\r (no-eol) (esc) (reporevlogstore !)
189 linking [ <=> ] 4\r (no-eol) (esc) (no-reposimplestore !)
189 linking [ <=> ] 4\r (no-eol) (esc) (reporevlogstore !)
190 linking [ <=> ] 5\r (no-eol) (esc) (no-reposimplestore !)
190 linking [ <=> ] 5\r (no-eol) (esc) (reporevlogstore !)
191 linking [ <=> ] 6\r (no-eol) (esc) (no-reposimplestore !)
191 linking [ <=> ] 6\r (no-eol) (esc) (reporevlogstore !)
192 linking [ <=> ] 1\r (no-eol) (esc) (reposimplestore !)
192 linking [ <=> ] 1\r (no-eol) (esc) (reposimplestore !)
193 linking [ <=> ] 2\r (no-eol) (esc) (reposimplestore !)
193 linking [ <=> ] 2\r (no-eol) (esc) (reposimplestore !)
194 linking [ <=> ] 3\r (no-eol) (esc) (reposimplestore !)
194 linking [ <=> ] 3\r (no-eol) (esc) (reposimplestore !)
General Comments 0
You need to be logged in to leave comments. Login now