##// END OF EJS Templates
tests: use debugrequires instead of grepping the file directly...
marmoute -
r49503:68b7faeb default
parent child Browse files
Show More
@@ -267,7 +267,7 b' sharing a largefile repo automatically e'
267 getting changed largefiles
267 getting changed largefiles
268 1 largefiles updated, 0 removed
268 1 largefiles updated, 0 removed
269 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
269 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
270 $ grep largefiles ../shared_lfrepo/.hg/requires
270 $ hg debugrequires -R ../shared_lfrepo | grep largefiles
271 largefiles
271 largefiles
272
272
273 verify that large files in subrepos handled properly
273 verify that large files in subrepos handled properly
@@ -34,6 +34,7 b' make command server magic visible'
34
34
35 $ hg init server
35 $ hg init server
36 $ SERVER_REQUIRES="$TESTTMP/server/.hg/requires"
36 $ SERVER_REQUIRES="$TESTTMP/server/.hg/requires"
37 $ SERVER_PATH="$TESTTMP/server/"
37
38
38 $ cat > $TESTTMP/debugprocessors.py <<EOF
39 $ cat > $TESTTMP/debugprocessors.py <<EOF
39 > from mercurial import (
40 > from mercurial import (
@@ -85,7 +86,9 b' missing processor for flag \'0x2000\'!" if'
85
86
86 $ cat hg.pid >> $DAEMON_PIDS
87 $ cat hg.pid >> $DAEMON_PIDS
87 $ hg clone -q http://localhost:$HGPORT client
88 $ hg clone -q http://localhost:$HGPORT client
88 $ grep 'lfs' client/.hg/requires $SERVER_REQUIRES
89 $ hg debugrequires -R client | grep 'lfs'
90 [1]
91 $ hg debugrequires -R $SERVER_PATH | grep 'lfs'
89 [1]
92 [1]
90
93
91 This trivial repo will force commandserver to load the extension, but not call
94 This trivial repo will force commandserver to load the extension, but not call
@@ -129,24 +132,27 b' non-lfs content, and the extension enabl'
129 +non-lfs
132 +non-lfs
130 *** runcommand debugupgraderepo -q --run
133 *** runcommand debugupgraderepo -q --run
131
134
132 $ grep 'lfs' .hg/requires $SERVER_REQUIRES
135 $ hg debugrequires -R $SERVER_PATH | grep 'lfs'
133 [1]
136 [1]
134
137
135 #if lfsremote-on
138 #if lfsremote-on
136
139
137 $ hg push -q
140 $ hg push -q
138 $ grep 'lfs' .hg/requires $SERVER_REQUIRES
141 $ hg debugrequires -R $SERVER_PATH | grep 'lfs'
139 [1]
142 [1]
140
143
141 $ hg clone -q http://localhost:$HGPORT $TESTTMP/client1_clone
144 $ hg clone -q http://localhost:$HGPORT $TESTTMP/client1_clone
142 $ grep 'lfs' $TESTTMP/client1_clone/.hg/requires $SERVER_REQUIRES
145 $ hg debugrequires -R $TESTTMP/client1_clone/ | grep 'lfs'
146 [1]
147 $ hg debugrequires -R $SERVER_PATH | grep 'lfs'
143 [1]
148 [1]
144
149
145 $ hg init $TESTTMP/client1_pull
150 $ hg init $TESTTMP/client1_pull
146 $ hg -R $TESTTMP/client1_pull pull -q http://localhost:$HGPORT
151 $ hg -R $TESTTMP/client1_pull pull -q http://localhost:$HGPORT
147 $ grep 'lfs' $TESTTMP/client1_pull/.hg/requires $SERVER_REQUIRES
152 $ hg debugrequires -R $TESTTMP/client1_pull/ | grep 'lfs'
148 [1]
153 [1]
149
154 $ hg debugrequires -R $SERVER_PATH | grep 'lfs'
155 [1]
150 $ hg identify http://localhost:$HGPORT
156 $ hg identify http://localhost:$HGPORT
151 d437e1d24fbd
157 d437e1d24fbd
152
158
@@ -167,16 +173,22 b' Since no lfs content has been added yet,'
167 extension is not enabled remotely.
173 extension is not enabled remotely.
168
174
169 $ hg push -q
175 $ hg push -q
170 $ grep 'lfs' .hg/requires $SERVER_REQUIRES
176 $ hg debugrequires | grep 'lfs'
177 [1]
178 $ hg debugrequires -R $SERVER_PATH | grep 'lfs'
171 [1]
179 [1]
172
180
173 $ hg clone -q http://localhost:$HGPORT $TESTTMP/client2_clone
181 $ hg clone -q http://localhost:$HGPORT $TESTTMP/client2_clone
174 $ grep 'lfs' $TESTTMP/client2_clone/.hg/requires $SERVER_REQUIRES
182 $ hg debugrequires -R $TESTTMP/client2_clone/ | grep 'lfs'
183 [1]
184 $ hg debugrequires -R $SERVER_PATH | grep 'lfs'
175 [1]
185 [1]
176
186
177 $ hg init $TESTTMP/client2_pull
187 $ hg init $TESTTMP/client2_pull
178 $ hg -R $TESTTMP/client2_pull pull -q http://localhost:$HGPORT
188 $ hg -R $TESTTMP/client2_pull pull -q http://localhost:$HGPORT
179 $ grep 'lfs' $TESTTMP/client2_pull/.hg/requires $SERVER_REQUIRES
189 $ hg debugrequires -R $TESTTMP/client2_pull/ | grep 'lfs'
190 [1]
191 $ hg debugrequires -R $SERVER_PATH | grep 'lfs'
180 [1]
192 [1]
181
193
182 $ hg identify http://localhost:$HGPORT
194 $ hg identify http://localhost:$HGPORT
@@ -189,8 +201,10 b" should have an 'lfs' requirement after i"
189
201
190 $ echo 'this is a big lfs file' > lfs.bin
202 $ echo 'this is a big lfs file' > lfs.bin
191 $ hg ci -Aqm 'lfs'
203 $ hg ci -Aqm 'lfs'
192 $ grep 'lfs' .hg/requires $SERVER_REQUIRES
204 $ hg debugrequires | grep 'lfs'
193 .hg/requires:lfs
205 lfs
206 $ hg debugrequires -R $SERVER_PATH | grep 'lfs'
207 [1]
194
208
195 #if lfsremote-off
209 #if lfsremote-off
196 $ hg push -q
210 $ hg push -q
@@ -200,20 +214,24 b" should have an 'lfs' requirement after i"
200 #else
214 #else
201 $ hg push -q
215 $ hg push -q
202 #endif
216 #endif
203 $ grep 'lfs' .hg/requires $SERVER_REQUIRES
217 $ hg debugrequires | grep 'lfs'
204 .hg/requires:lfs
218 lfs
205 $TESTTMP/server/.hg/requires:lfs (lfsremote-on !)
219 $ hg debugrequires -R $SERVER_PATH | grep 'lfs' || true
220 lfs (lfsremote-on !)
206
221
207 $ hg clone -q http://localhost:$HGPORT $TESTTMP/client3_clone
222 $ hg clone -q http://localhost:$HGPORT $TESTTMP/client3_clone
208 $ grep 'lfs' $TESTTMP/client3_clone/.hg/requires $SERVER_REQUIRES || true
223
209 $TESTTMP/client3_clone/.hg/requires:lfs (lfsremote-on !)
224 $ hg debugrequires -R $TESTTMP/client3_clone/ | grep 'lfs' || true
210 $TESTTMP/server/.hg/requires:lfs (lfsremote-on !)
225 lfs (lfsremote-on !)
226 $ hg debugrequires -R $SERVER_PATH | grep 'lfs' || true
227 lfs (lfsremote-on !)
211
228
212 $ hg init $TESTTMP/client3_pull
229 $ hg init $TESTTMP/client3_pull
213 $ hg -R $TESTTMP/client3_pull pull -q http://localhost:$HGPORT
230 $ hg -R $TESTTMP/client3_pull pull -q http://localhost:$HGPORT
214 $ grep 'lfs' $TESTTMP/client3_pull/.hg/requires $SERVER_REQUIRES || true
231 $ hg debugrequires -R $TESTTMP/client3_pull/ | grep 'lfs' || true
215 $TESTTMP/client3_pull/.hg/requires:lfs (lfsremote-on !)
232 lfs (lfsremote-on !)
216 $TESTTMP/server/.hg/requires:lfs (lfsremote-on !)
233 $ hg debugrequires -R $SERVER_PATH | grep 'lfs' || true
234 lfs (lfsremote-on !)
217
235
218 Test that the commit/changegroup requirement check hook can be run multiple
236 Test that the commit/changegroup requirement check hook can be run multiple
219 times.
237 times.
@@ -267,23 +285,24 b' lfs content, and the extension enabled.'
267 > EOF
285 > EOF
268 $ echo 'non-lfs' > nonlfs2.txt
286 $ echo 'non-lfs' > nonlfs2.txt
269 $ hg ci -Aqm 'non-lfs'
287 $ hg ci -Aqm 'non-lfs'
270 $ grep 'lfs' .hg/requires $SERVER_REQUIRES
288 $ hg debugrequires -R $SERVER_PATH --config extensions.lfs= | grep 'lfs'
271 $TESTTMP/server/.hg/requires:lfs
289 lfs
272
290
273 $ hg push -q --force
291 $ hg push -q --force
274 warning: repository is unrelated
292 warning: repository is unrelated
275 $ grep 'lfs' .hg/requires $SERVER_REQUIRES
293 $ hg debugrequires -R $SERVER_PATH --config extensions.lfs= | grep 'lfs'
276 $TESTTMP/server/.hg/requires:lfs
294 lfs
277
295
278 $ hg clone http://localhost:$HGPORT $TESTTMP/client4_clone
296 $ hg clone http://localhost:$HGPORT $TESTTMP/client4_clone
279 (remote is using large file support (lfs), but it is explicitly disabled in the local configuration)
297 (remote is using large file support (lfs), but it is explicitly disabled in the local configuration)
280 abort: repository requires features unknown to this Mercurial: lfs
298 abort: repository requires features unknown to this Mercurial: lfs
281 (see https://mercurial-scm.org/wiki/MissingRequirement for more information)
299 (see https://mercurial-scm.org/wiki/MissingRequirement for more information)
282 [255]
300 [255]
283 $ grep 'lfs' $TESTTMP/client4_clone/.hg/requires $SERVER_REQUIRES
301 $ hg debugrequires -R $TESTTMP/client4_clone/ | grep 'lfs'
284 grep: $TESTTMP/client4_clone/.hg/requires: $ENOENT$
302 abort: repository $TESTTMP/client4_clone/ not found
285 $TESTTMP/server/.hg/requires:lfs
303 [1]
286 [2]
304 $ hg debugrequires -R $SERVER_PATH --config extensions.lfs= | grep 'lfs'
305 lfs
287
306
288 TODO: fail more gracefully.
307 TODO: fail more gracefully.
289
308
@@ -294,8 +313,10 b' TODO: fail more gracefully.'
294 remote: abort: no common changegroup version
313 remote: abort: no common changegroup version
295 abort: pull failed on remote
314 abort: pull failed on remote
296 [100]
315 [100]
297 $ grep 'lfs' $TESTTMP/client4_pull/.hg/requires $SERVER_REQUIRES
316 $ hg debugrequires -R $TESTTMP/client4_pull/ | grep 'lfs'
298 $TESTTMP/server/.hg/requires:lfs
317 [1]
318 $ hg debugrequires -R $SERVER_PATH --config extensions.lfs= | grep 'lfs'
319 lfs
299
320
300 $ hg identify http://localhost:$HGPORT
321 $ hg identify http://localhost:$HGPORT
301 03b080fa9d93
322 03b080fa9d93
@@ -312,19 +333,21 b' lfs content, and the extension enabled.'
312 $ hg ci -Aqm 'non-lfs file with lfs client'
333 $ hg ci -Aqm 'non-lfs file with lfs client'
313
334
314 $ hg push -q
335 $ hg push -q
315 $ grep 'lfs' .hg/requires $SERVER_REQUIRES
336 $ hg debugrequires -R $SERVER_PATH | grep 'lfs'
316 $TESTTMP/server/.hg/requires:lfs
337 lfs
317
338
318 $ hg clone -q http://localhost:$HGPORT $TESTTMP/client5_clone
339 $ hg clone -q http://localhost:$HGPORT $TESTTMP/client5_clone
319 $ grep 'lfs' $TESTTMP/client5_clone/.hg/requires $SERVER_REQUIRES
340 $ hg debugrequires -R $TESTTMP/client5_clone/ | grep 'lfs'
320 $TESTTMP/client5_clone/.hg/requires:lfs
341 lfs
321 $TESTTMP/server/.hg/requires:lfs
342 $ hg debugrequires -R $SERVER_PATH | grep 'lfs'
343 lfs
322
344
323 $ hg init $TESTTMP/client5_pull
345 $ hg init $TESTTMP/client5_pull
324 $ hg -R $TESTTMP/client5_pull pull -q http://localhost:$HGPORT
346 $ hg -R $TESTTMP/client5_pull pull -q http://localhost:$HGPORT
325 $ grep 'lfs' $TESTTMP/client5_pull/.hg/requires $SERVER_REQUIRES
347 $ hg debugrequires -R $TESTTMP/client5_pull/ | grep 'lfs'
326 $TESTTMP/client5_pull/.hg/requires:lfs
348 lfs
327 $TESTTMP/server/.hg/requires:lfs
349 $ hg debugrequires -R $SERVER_PATH | grep 'lfs'
350 lfs
328
351
329 $ hg identify http://localhost:$HGPORT
352 $ hg identify http://localhost:$HGPORT
330 c729025cc5e3
353 c729025cc5e3
@@ -463,14 +486,16 b' lfs content, and the extension enabled.'
463 remote: adding file changes
486 remote: adding file changes
464 remote: added 1 changesets with 1 changes to 1 files
487 remote: added 1 changesets with 1 changes to 1 files
465 (sent 8 HTTP requests and * bytes; received * bytes in responses) (glob) (?)
488 (sent 8 HTTP requests and * bytes; received * bytes in responses) (glob) (?)
466 $ grep 'lfs' .hg/requires $SERVER_REQUIRES
489 $ hg debugrequires | grep lfs
467 .hg/requires:lfs
490 lfs
468 $TESTTMP/server/.hg/requires:lfs
491 $ hg debugrequires -R $SERVER_PATH | grep lfs
492 lfs
469
493
470 $ hg clone -q http://localhost:$HGPORT $TESTTMP/client6_clone
494 $ hg clone -q http://localhost:$HGPORT $TESTTMP/client6_clone
471 $ grep 'lfs' $TESTTMP/client6_clone/.hg/requires $SERVER_REQUIRES
495 $ hg debugrequires -R $TESTTMP/client6_clone/ | grep lfs
472 $TESTTMP/client6_clone/.hg/requires:lfs
496 lfs
473 $TESTTMP/server/.hg/requires:lfs
497 $ hg debugrequires -R $SERVER_PATH | grep lfs
498 lfs
474
499
475 $ hg init $TESTTMP/client6_pull
500 $ hg init $TESTTMP/client6_pull
476 $ hg -R $TESTTMP/client6_pull pull -u -v http://localhost:$HGPORT
501 $ hg -R $TESTTMP/client6_pull pull -u -v http://localhost:$HGPORT
@@ -495,9 +520,10 b' lfs content, and the extension enabled.'
495 updated to "d3b84d50eacb: lfs file with lfs client"
520 updated to "d3b84d50eacb: lfs file with lfs client"
496 1 other heads for branch "default"
521 1 other heads for branch "default"
497 (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob)
522 (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob)
498 $ grep 'lfs' $TESTTMP/client6_pull/.hg/requires $SERVER_REQUIRES
523 $ hg debugrequires -R $TESTTMP/client6_pull/ | grep lfs
499 $TESTTMP/client6_pull/.hg/requires:lfs
524 lfs
500 $TESTTMP/server/.hg/requires:lfs
525 $ hg debugrequires -R $SERVER_PATH | grep lfs
526 lfs
501
527
502 $ hg identify http://localhost:$HGPORT
528 $ hg identify http://localhost:$HGPORT
503 d3b84d50eacb
529 d3b84d50eacb
@@ -75,10 +75,10 b''
75
75
76 # Commit large file
76 # Commit large file
77 $ echo $LONG > largefile
77 $ echo $LONG > largefile
78 $ grep lfs .hg/requires
78 $ hg debugrequires | grep lfs
79 [1]
79 [1]
80 $ hg commit --traceback -Aqm "add large file"
80 $ hg commit --traceback -Aqm "add large file"
81 $ grep lfs .hg/requires
81 $ hg debugrequires | grep lfs
82 lfs
82 lfs
83
83
84 # Ensure metadata is stored
84 # Ensure metadata is stored
@@ -114,7 +114,7 b''
114 Push to a local non-lfs repo with the extension enabled will add the
114 Push to a local non-lfs repo with the extension enabled will add the
115 lfs requirement
115 lfs requirement
116
116
117 $ grep lfs $TESTTMP/server/.hg/requires
117 $ hg debugrequires -R $TESTTMP/server/ | grep lfs
118 [1]
118 [1]
119 $ hg push -v | egrep -v '^(uncompressed| )'
119 $ hg push -v | egrep -v '^(uncompressed| )'
120 pushing to $TESTTMP/server
120 pushing to $TESTTMP/server
@@ -126,7 +126,7 b' lfs requirement'
126 adding file changes
126 adding file changes
127 calling hook pretxnchangegroup.lfs: hgext.lfs.checkrequireslfs
127 calling hook pretxnchangegroup.lfs: hgext.lfs.checkrequireslfs
128 added 2 changesets with 3 changes to 3 files
128 added 2 changesets with 3 changes to 3 files
129 $ grep lfs $TESTTMP/server/.hg/requires
129 $ hg debugrequires -R $TESTTMP/server/ | grep lfs
130 lfs
130 lfs
131
131
132 # Unknown URL scheme
132 # Unknown URL scheme
@@ -150,8 +150,9 b' lfs requirement'
150 Pulling a local lfs repo into a local non-lfs repo with the extension
150 Pulling a local lfs repo into a local non-lfs repo with the extension
151 enabled adds the lfs requirement
151 enabled adds the lfs requirement
152
152
153 $ grep lfs .hg/requires $TESTTMP/server/.hg/requires
153 $ hg debugrequires | grep lfs || true
154 $TESTTMP/server/.hg/requires:lfs
154 $ hg debugrequires -R $TESTTMP/server/ | grep lfs
155 lfs
155 $ hg pull default
156 $ hg pull default
156 pulling from $TESTTMP/server
157 pulling from $TESTTMP/server
157 requesting all changes
158 requesting all changes
@@ -161,9 +162,10 b' enabled adds the lfs requirement'
161 added 2 changesets with 3 changes to 3 files
162 added 2 changesets with 3 changes to 3 files
162 new changesets 0ead593177f7:b88141481348
163 new changesets 0ead593177f7:b88141481348
163 (run 'hg update' to get a working copy)
164 (run 'hg update' to get a working copy)
164 $ grep lfs .hg/requires $TESTTMP/server/.hg/requires
165 $ hg debugrequires | grep lfs
165 .hg/requires:lfs
166 lfs
166 $TESTTMP/server/.hg/requires:lfs
167 $ hg debugrequires -R $TESTTMP/server/ | grep lfs
168 lfs
167
169
168 # Check the blobstore is not yet populated
170 # Check the blobstore is not yet populated
169 $ [ -d .hg/store/lfs/objects ]
171 $ [ -d .hg/store/lfs/objects ]
@@ -314,7 +316,7 b' enabled adds the lfs requirement'
314 $ hg --config extensions.share= share repo7 sharedrepo
316 $ hg --config extensions.share= share repo7 sharedrepo
315 updating working directory
317 updating working directory
316 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
318 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
317 $ grep lfs sharedrepo/.hg/requires
319 $ hg debugrequires -R sharedrepo/ | grep lfs
318 lfs
320 lfs
319
321
320 # Test rename and status
322 # Test rename and status
@@ -1002,7 +1004,7 b" there's no 'lfs' destination repo requir"
1002 2 a
1004 2 a
1003 1 b
1005 1 b
1004 0 meta
1006 0 meta
1005 $ grep 'lfs' convert_normal/.hg/requires
1007 $ hg debugrequires -R convert_normal | grep 'lfs'
1006 [1]
1008 [1]
1007 $ hg --cwd convert_normal cat a1 -r 0 -T '{rawdata}'
1009 $ hg --cwd convert_normal cat a1 -r 0 -T '{rawdata}'
1008 THIS-IS-LFS-BECAUSE-10-BYTES
1010 THIS-IS-LFS-BECAUSE-10-BYTES
@@ -1044,7 +1046,7 b" there's no 'lfs' destination repo requir"
1044 1: a2: 5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024
1046 1: a2: 5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024
1045 2: a2: 876dadc86a8542f9798048f2c47f51dbf8e4359aed883e8ec80c5db825f0d943
1047 2: a2: 876dadc86a8542f9798048f2c47f51dbf8e4359aed883e8ec80c5db825f0d943
1046
1048
1047 $ grep 'lfs' convert_lfs/.hg/requires
1049 $ hg debugrequires -R convert_lfs | grep 'lfs'
1048 lfs
1050 lfs
1049
1051
1050 The hashes in all stages of the conversion are unchanged.
1052 The hashes in all stages of the conversion are unchanged.
@@ -1075,7 +1077,7 b' This convert is trickier, because it con'
1075 2 large to small, small to large
1077 2 large to small, small to large
1076 1 random modifications
1078 1 random modifications
1077 0 switch large and small again
1079 0 switch large and small again
1078 $ grep 'lfs' convert_normal2/.hg/requires
1080 $ hg debugrequires -R convert_normal2 | grep 'lfs'
1079 [1]
1081 [1]
1080 $ hg --cwd convert_normal2 debugdata large 0
1082 $ hg --cwd convert_normal2 debugdata large 0
1081 LONGER-THAN-TEN-BYTES-WILL-TRIGGER-LFS
1083 LONGER-THAN-TEN-BYTES-WILL-TRIGGER-LFS
@@ -1091,7 +1093,7 b' This convert is trickier, because it con'
1091 2 large to small, small to large
1093 2 large to small, small to large
1092 1 random modifications
1094 1 random modifications
1093 0 switch large and small again
1095 0 switch large and small again
1094 $ grep 'lfs' convert_lfs2/.hg/requires
1096 $ hg debugrequires -R convert_lfs2 | grep 'lfs'
1095 lfs
1097 lfs
1096 $ hg --cwd convert_lfs2 debugdata large 0
1098 $ hg --cwd convert_lfs2 debugdata large 0
1097 version https://git-lfs.github.com/spec/v1
1099 version https://git-lfs.github.com/spec/v1
@@ -1202,10 +1204,10 b' Unbundling adds a requirement to a non-l'
1202 $ hg bundle -R convert_lfs2 -qr tip --base null lfs.hg
1204 $ hg bundle -R convert_lfs2 -qr tip --base null lfs.hg
1203 $ hg init unbundle
1205 $ hg init unbundle
1204 $ hg pull -R unbundle -q nolfs.hg
1206 $ hg pull -R unbundle -q nolfs.hg
1205 $ grep lfs unbundle/.hg/requires
1207 $ hg debugrequires -R unbundle | grep lfs
1206 [1]
1208 [1]
1207 $ hg pull -R unbundle -q lfs.hg
1209 $ hg pull -R unbundle -q lfs.hg
1208 $ grep lfs unbundle/.hg/requires
1210 $ hg debugrequires -R unbundle | grep lfs
1209 lfs
1211 lfs
1210
1212
1211 $ hg init no_lfs
1213 $ hg init no_lfs
@@ -1224,7 +1226,7 b' with lfs disabled, fails.'
1224 pushing to no_lfs
1226 pushing to no_lfs
1225 abort: required features are not supported in the destination: lfs
1227 abort: required features are not supported in the destination: lfs
1226 [255]
1228 [255]
1227 $ grep lfs no_lfs/.hg/requires
1229 $ hg debugrequires -R no_lfs/ | grep lfs
1228 [1]
1230 [1]
1229
1231
1230 Pulling from a local lfs repo to a local repo without an lfs requirement and
1232 Pulling from a local lfs repo to a local repo without an lfs requirement and
@@ -1234,5 +1236,5 b' with lfs disabled, fails.'
1234 pulling from convert_lfs2
1236 pulling from convert_lfs2
1235 abort: required features are not supported in the destination: lfs
1237 abort: required features are not supported in the destination: lfs
1236 [255]
1238 [255]
1237 $ grep lfs no_lfs2/.hg/requires
1239 $ hg debugrequires -R no_lfs2/ | grep lfs
1238 [1]
1240 [1]
@@ -380,7 +380,7 b" Check that temporary bundle doesn't lose"
380
380
381 $ hg --config format.usegeneraldelta=no init issue5678
381 $ hg --config format.usegeneraldelta=no init issue5678
382 $ cd issue5678
382 $ cd issue5678
383 $ grep generaldelta .hg/requires
383 $ hg debugrequires | grep generaldelta
384 [1]
384 [1]
385 $ echo a > a
385 $ echo a > a
386 $ hg ci -Aqm a
386 $ hg ci -Aqm a
@@ -40,7 +40,7 b' without changegroup2 support'
40 > EOF
40 > EOF
41
41
42 $ hg init master
42 $ hg init master
43 $ grep generaldelta master/.hg/requires
43 $ hg debugrequires -R master | grep generaldelta
44 generaldelta
44 generaldelta
45 $ cd master
45 $ cd master
46 preferuncompressed = False so that we can make both generaldelta and non-generaldelta clones
46 preferuncompressed = False so that we can make both generaldelta and non-generaldelta clones
@@ -3,7 +3,7 b''
3 $ . "$TESTDIR/remotefilelog-library.sh"
3 $ . "$TESTDIR/remotefilelog-library.sh"
4
4
5 $ hg init master
5 $ hg init master
6 $ grep generaldelta master/.hg/requires
6 $ hg debugrequires -R master | grep generaldelta
7 generaldelta
7 generaldelta
8 $ cd master
8 $ cd master
9 preferuncompressed = False so that we can make both generaldelta and non-generaldelta clones
9 preferuncompressed = False so that we can make both generaldelta and non-generaldelta clones
@@ -22,10 +22,10 b' preferuncompressed = False so that we ca'
22
22
23 $ hgcloneshallow ssh://user@dummy/master shallow-generaldelta -q --pull --config experimental.bundle2-exp=True
23 $ hgcloneshallow ssh://user@dummy/master shallow-generaldelta -q --pull --config experimental.bundle2-exp=True
24 1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob)
24 1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob)
25 $ grep generaldelta shallow-generaldelta/.hg/requires
25 $ hg debugrequires -R shallow-generaldelta/ | grep generaldelta
26 generaldelta
26 generaldelta
27 $ hgcloneshallow ssh://user@dummy/master shallow-plain -q --pull --config format.usegeneraldelta=False --config format.generaldelta=False --config experimental.bundle2-exp=True
27 $ hgcloneshallow ssh://user@dummy/master shallow-plain -q --pull --config format.usegeneraldelta=False --config format.generaldelta=False --config experimental.bundle2-exp=True
28 $ grep generaldelta shallow-plain/.hg/requires
28 $ hg debugrequires -R shallow-plain/ | grep generaldelta
29 [1]
29 [1]
30
30
31 $ cd master
31 $ cd master
@@ -173,7 +173,7 b' test unshare command'
173 $ test -d .hg/store
173 $ test -d .hg/store
174 $ test -f .hg/sharedpath
174 $ test -f .hg/sharedpath
175 [1]
175 [1]
176 $ grep shared .hg/requires
176 $ hg debugrequires | grep shared
177 [1]
177 [1]
178 $ hg unshare
178 $ hg unshare
179 abort: this is not a shared repo
179 abort: this is not a shared repo
@@ -208,10 +208,11 b' test shared clones using relative paths '
208 $ hg share -U --relative thisdir/abs thisdir/rel
208 $ hg share -U --relative thisdir/abs thisdir/rel
209 $ cat thisdir/rel/.hg/sharedpath
209 $ cat thisdir/rel/.hg/sharedpath
210 ../../orig/.hg (no-eol)
210 ../../orig/.hg (no-eol)
211 $ grep shared thisdir/*/.hg/requires
211 $ hg debugrequires -R thisdir/abs/ | grep shared
212 thisdir/abs/.hg/requires:shared
212 shared
213 thisdir/rel/.hg/requires:relshared
213 $ hg debugrequires -R thisdir/rel/ | grep shared
214 thisdir/rel/.hg/requires:shared
214 relshared
215 shared
215
216
216 test that relative shared paths aren't relative to $PWD
217 test that relative shared paths aren't relative to $PWD
217
218
@@ -241,7 +242,7 b' test unshare relshared repo'
241 $ test -d .hg/store
242 $ test -d .hg/store
242 $ test -f .hg/sharedpath
243 $ test -f .hg/sharedpath
243 [1]
244 [1]
244 $ grep shared .hg/requires
245 $ hg debugrequires | grep shared
245 [1]
246 [1]
246 $ hg unshare
247 $ hg unshare
247 abort: this is not a shared repo
248 abort: this is not a shared repo
@@ -192,7 +192,7 b' Clone main'
192 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
192 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
193
193
194 Largefiles is NOT enabled in the clone if the source repo doesn't require it
194 Largefiles is NOT enabled in the clone if the source repo doesn't require it
195 $ grep largefiles cloned/.hg/hgrc
195 $ hg debugrequires -R cloned | grep largefiles
196 [1]
196 [1]
197
197
198 Checking cloned repo ids
198 Checking cloned repo ids
@@ -776,7 +776,7 b' The local repo enables largefiles if a l'
776 extensions.largefiles=
776 extensions.largefiles=
777
777
778 $ hg --config extensions.largefiles= clone -qU . ../lfclone
778 $ hg --config extensions.largefiles= clone -qU . ../lfclone
779 $ grep largefiles ../lfclone/.hg/requires
779 $ hg debugrequires -R ../lfclone | grep largefiles
780 largefiles
780 largefiles
781
781
782 Find an exact match to a standin (should archive nothing)
782 Find an exact match to a standin (should archive nothing)
@@ -1189,7 +1189,7 b' Check upgrading a large file repository'
1189 $ echo '123456789012345' > lfs.bin
1189 $ echo '123456789012345' > lfs.bin
1190 $ hg ci -Am 'lfs.bin'
1190 $ hg ci -Am 'lfs.bin'
1191 adding lfs.bin
1191 adding lfs.bin
1192 $ grep lfs .hg/requires
1192 $ hg debugrequires | grep lfs
1193 lfs
1193 lfs
1194 $ find .hg/store/lfs -type f
1194 $ find .hg/store/lfs -type f
1195 .hg/store/lfs/objects/d0/beab232adff5ba365880366ad30b1edb85c4c5372442b5d2fe27adc96d653f
1195 .hg/store/lfs/objects/d0/beab232adff5ba365880366ad30b1edb85c4c5372442b5d2fe27adc96d653f
@@ -1197,7 +1197,7 b' Check upgrading a large file repository'
1197 $ hg debugupgraderepo --run
1197 $ hg debugupgraderepo --run
1198 nothing to do
1198 nothing to do
1199
1199
1200 $ grep lfs .hg/requires
1200 $ hg debugrequires | grep lfs
1201 lfs
1201 lfs
1202 $ find .hg/store/lfs -type f
1202 $ find .hg/store/lfs -type f
1203 .hg/store/lfs/objects/d0/beab232adff5ba365880366ad30b1edb85c4c5372442b5d2fe27adc96d653f
1203 .hg/store/lfs/objects/d0/beab232adff5ba365880366ad30b1edb85c4c5372442b5d2fe27adc96d653f
General Comments 0
You need to be logged in to leave comments. Login now