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