##// END OF EJS Templates
test: drop usage of `HGMERGE` in `test-lfconvert.t`...
Boris Feld -
r40504:1f0c5c9a default
parent child Browse files
Show More
@@ -1,397 +1,397 b''
1 $ USERCACHE="$TESTTMP/cache"; export USERCACHE
1 $ USERCACHE="$TESTTMP/cache"; export USERCACHE
2 $ mkdir "${USERCACHE}"
2 $ mkdir "${USERCACHE}"
3 $ cat >> $HGRCPATH <<EOF
3 $ cat >> $HGRCPATH <<EOF
4 > [extensions]
4 > [extensions]
5 > largefiles =
5 > largefiles =
6 > share =
6 > share =
7 > strip =
7 > strip =
8 > convert =
8 > convert =
9 > [largefiles]
9 > [largefiles]
10 > minsize = 0.5
10 > minsize = 0.5
11 > patterns = **.other
11 > patterns = **.other
12 > **.dat
12 > **.dat
13 > usercache=${USERCACHE}
13 > usercache=${USERCACHE}
14 > EOF
14 > EOF
15
15
16 "lfconvert" works
16 "lfconvert" works
17 $ hg init bigfile-repo
17 $ hg init bigfile-repo
18 $ cd bigfile-repo
18 $ cd bigfile-repo
19 $ cat >> .hg/hgrc <<EOF
19 $ cat >> .hg/hgrc <<EOF
20 > [extensions]
20 > [extensions]
21 > largefiles = !
21 > largefiles = !
22 > EOF
22 > EOF
23 $ mkdir sub
23 $ mkdir sub
24 $ dd if=/dev/zero bs=1k count=256 > large 2> /dev/null
24 $ dd if=/dev/zero bs=1k count=256 > large 2> /dev/null
25 $ dd if=/dev/zero bs=1k count=256 > large2 2> /dev/null
25 $ dd if=/dev/zero bs=1k count=256 > large2 2> /dev/null
26 $ echo normal > normal1
26 $ echo normal > normal1
27 $ echo alsonormal > sub/normal2
27 $ echo alsonormal > sub/normal2
28 $ dd if=/dev/zero bs=1k count=10 > sub/maybelarge.dat 2> /dev/null
28 $ dd if=/dev/zero bs=1k count=10 > sub/maybelarge.dat 2> /dev/null
29 $ hg addremove
29 $ hg addremove
30 adding large
30 adding large
31 adding large2
31 adding large2
32 adding normal1
32 adding normal1
33 adding sub/maybelarge.dat
33 adding sub/maybelarge.dat
34 adding sub/normal2
34 adding sub/normal2
35 $ hg commit -m"add large, normal1" large normal1
35 $ hg commit -m"add large, normal1" large normal1
36 $ hg commit -m"add sub/*" sub
36 $ hg commit -m"add sub/*" sub
37
37
38 Test tag parsing
38 Test tag parsing
39 $ cat >> .hgtags <<EOF
39 $ cat >> .hgtags <<EOF
40 > IncorrectlyFormattedTag!
40 > IncorrectlyFormattedTag!
41 > invalidhash sometag
41 > invalidhash sometag
42 > 0123456789abcdef anothertag
42 > 0123456789abcdef anothertag
43 > EOF
43 > EOF
44 $ hg add .hgtags
44 $ hg add .hgtags
45 $ hg commit -m"add large2" large2 .hgtags
45 $ hg commit -m"add large2" large2 .hgtags
46
46
47 Test link+rename largefile codepath
47 Test link+rename largefile codepath
48 $ [ -d .hg/largefiles ] && echo fail || echo pass
48 $ [ -d .hg/largefiles ] && echo fail || echo pass
49 pass
49 pass
50 $ cd ..
50 $ cd ..
51 $ hg lfconvert --size 0.2 bigfile-repo largefiles-repo
51 $ hg lfconvert --size 0.2 bigfile-repo largefiles-repo
52 initializing destination largefiles-repo
52 initializing destination largefiles-repo
53 skipping incorrectly formatted tag IncorrectlyFormattedTag!
53 skipping incorrectly formatted tag IncorrectlyFormattedTag!
54 skipping incorrectly formatted id invalidhash
54 skipping incorrectly formatted id invalidhash
55 no mapping for id 0123456789abcdef
55 no mapping for id 0123456789abcdef
56 #if symlink
56 #if symlink
57 $ hg --cwd bigfile-repo rename large2 large3
57 $ hg --cwd bigfile-repo rename large2 large3
58 $ ln -sf large bigfile-repo/large3
58 $ ln -sf large bigfile-repo/large3
59 $ hg --cwd bigfile-repo commit -m"make large2 a symlink" large2 large3
59 $ hg --cwd bigfile-repo commit -m"make large2 a symlink" large2 large3
60 $ hg lfconvert --size 0.2 bigfile-repo largefiles-repo-symlink
60 $ hg lfconvert --size 0.2 bigfile-repo largefiles-repo-symlink
61 initializing destination largefiles-repo-symlink
61 initializing destination largefiles-repo-symlink
62 skipping incorrectly formatted tag IncorrectlyFormattedTag!
62 skipping incorrectly formatted tag IncorrectlyFormattedTag!
63 skipping incorrectly formatted id invalidhash
63 skipping incorrectly formatted id invalidhash
64 no mapping for id 0123456789abcdef
64 no mapping for id 0123456789abcdef
65 abort: renamed/copied largefile large3 becomes symlink
65 abort: renamed/copied largefile large3 becomes symlink
66 [255]
66 [255]
67 #endif
67 #endif
68 $ cd bigfile-repo
68 $ cd bigfile-repo
69 $ hg strip --no-backup 2
69 $ hg strip --no-backup 2
70 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
70 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
71 $ cd ..
71 $ cd ..
72 $ rm -rf largefiles-repo largefiles-repo-symlink
72 $ rm -rf largefiles-repo largefiles-repo-symlink
73
73
74 $ hg lfconvert --size 0.2 bigfile-repo largefiles-repo
74 $ hg lfconvert --size 0.2 bigfile-repo largefiles-repo
75 initializing destination largefiles-repo
75 initializing destination largefiles-repo
76
76
77 "lfconvert" converts content correctly
77 "lfconvert" converts content correctly
78 $ cd largefiles-repo
78 $ cd largefiles-repo
79 $ hg up
79 $ hg up
80 getting changed largefiles
80 getting changed largefiles
81 2 largefiles updated, 0 removed
81 2 largefiles updated, 0 removed
82 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
82 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
83 $ hg locate
83 $ hg locate
84 .hglf/large
84 .hglf/large
85 .hglf/sub/maybelarge.dat
85 .hglf/sub/maybelarge.dat
86 normal1
86 normal1
87 sub/normal2
87 sub/normal2
88 $ cat normal1
88 $ cat normal1
89 normal
89 normal
90 $ cat sub/normal2
90 $ cat sub/normal2
91 alsonormal
91 alsonormal
92 $ md5sum.py large sub/maybelarge.dat
92 $ md5sum.py large sub/maybelarge.dat
93 ec87a838931d4d5d2e94a04644788a55 large
93 ec87a838931d4d5d2e94a04644788a55 large
94 1276481102f218c981e0324180bafd9f sub/maybelarge.dat
94 1276481102f218c981e0324180bafd9f sub/maybelarge.dat
95
95
96 "lfconvert" adds 'largefiles' to .hg/requires.
96 "lfconvert" adds 'largefiles' to .hg/requires.
97 $ cat .hg/requires
97 $ cat .hg/requires
98 dotencode
98 dotencode
99 fncache
99 fncache
100 generaldelta
100 generaldelta
101 largefiles
101 largefiles
102 revlogv1
102 revlogv1
103 store
103 store
104 testonly-simplestore (reposimplestore !)
104 testonly-simplestore (reposimplestore !)
105
105
106 "lfconvert" includes a newline at the end of the standin files.
106 "lfconvert" includes a newline at the end of the standin files.
107 $ cat .hglf/large .hglf/sub/maybelarge.dat
107 $ cat .hglf/large .hglf/sub/maybelarge.dat
108 2e000fa7e85759c7f4c254d4d9c33ef481e459a7
108 2e000fa7e85759c7f4c254d4d9c33ef481e459a7
109 34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c
109 34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c
110 $ cd ..
110 $ cd ..
111
111
112 add some changesets to rename/remove/merge
112 add some changesets to rename/remove/merge
113 $ cd bigfile-repo
113 $ cd bigfile-repo
114 $ hg mv -q sub stuff
114 $ hg mv -q sub stuff
115 $ hg commit -m"rename sub/ to stuff/"
115 $ hg commit -m"rename sub/ to stuff/"
116 $ hg update -q 1
116 $ hg update -q 1
117 $ echo blah >> normal3
117 $ echo blah >> normal3
118 $ echo blah >> sub/normal2
118 $ echo blah >> sub/normal2
119 $ echo blah >> sub/maybelarge.dat
119 $ echo blah >> sub/maybelarge.dat
120 $ md5sum.py sub/maybelarge.dat
120 $ md5sum.py sub/maybelarge.dat
121 1dd0b99ff80e19cff409702a1d3f5e15 sub/maybelarge.dat
121 1dd0b99ff80e19cff409702a1d3f5e15 sub/maybelarge.dat
122 $ hg commit -A -m"add normal3, modify sub/*"
122 $ hg commit -A -m"add normal3, modify sub/*"
123 adding normal3
123 adding normal3
124 created new head
124 created new head
125 $ hg rm large normal3
125 $ hg rm large normal3
126 $ hg commit -q -m"remove large, normal3"
126 $ hg commit -q -m"remove large, normal3"
127 $ hg merge
127 $ HGMERGE= hg merge --config ui.merge=internal:merge
128 merging sub/maybelarge.dat and stuff/maybelarge.dat to stuff/maybelarge.dat
128 tool internal:merge (for pattern stuff/maybelarge.dat) can't handle binary
129 no tool found to merge stuff/maybelarge.dat
130 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for stuff/maybelarge.dat? u
129 merging sub/normal2 and stuff/normal2 to stuff/normal2
131 merging sub/normal2 and stuff/normal2 to stuff/normal2
130 warning: stuff/maybelarge.dat looks like a binary file.
131 warning: conflicts while merging stuff/maybelarge.dat! (edit, then use 'hg resolve --mark')
132 0 files updated, 1 files merged, 0 files removed, 1 files unresolved
132 0 files updated, 1 files merged, 0 files removed, 1 files unresolved
133 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
133 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
134 [1]
134 [1]
135 $ hg cat -r . sub/maybelarge.dat > stuff/maybelarge.dat
135 $ hg cat -r . sub/maybelarge.dat > stuff/maybelarge.dat
136 $ hg resolve -m stuff/maybelarge.dat
136 $ hg resolve -m stuff/maybelarge.dat
137 (no more unresolved files)
137 (no more unresolved files)
138 $ hg commit -m"merge"
138 $ hg commit -m"merge"
139 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
139 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
140 @ 5:4884f215abda merge
140 @ 5:4884f215abda merge
141 |\
141 |\
142 | o 4:7285f817b77e remove large, normal3
142 | o 4:7285f817b77e remove large, normal3
143 | |
143 | |
144 | o 3:67e3892e3534 add normal3, modify sub/*
144 | o 3:67e3892e3534 add normal3, modify sub/*
145 | |
145 | |
146 o | 2:c96c8beb5d56 rename sub/ to stuff/
146 o | 2:c96c8beb5d56 rename sub/ to stuff/
147 |/
147 |/
148 o 1:020c65d24e11 add sub/*
148 o 1:020c65d24e11 add sub/*
149 |
149 |
150 o 0:117b8328f97a add large, normal1
150 o 0:117b8328f97a add large, normal1
151
151
152 $ cd ..
152 $ cd ..
153
153
154 lfconvert with rename, merge, and remove
154 lfconvert with rename, merge, and remove
155 $ rm -rf largefiles-repo
155 $ rm -rf largefiles-repo
156 $ hg lfconvert --size 0.2 bigfile-repo largefiles-repo
156 $ hg lfconvert --size 0.2 bigfile-repo largefiles-repo
157 initializing destination largefiles-repo
157 initializing destination largefiles-repo
158 $ cd largefiles-repo
158 $ cd largefiles-repo
159 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
159 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
160 o 5:8e05f5f2b77e merge
160 o 5:8e05f5f2b77e merge
161 |\
161 |\
162 | o 4:a5a02de7a8e4 remove large, normal3
162 | o 4:a5a02de7a8e4 remove large, normal3
163 | |
163 | |
164 | o 3:55759520c76f add normal3, modify sub/*
164 | o 3:55759520c76f add normal3, modify sub/*
165 | |
165 | |
166 o | 2:261ad3f3f037 rename sub/ to stuff/
166 o | 2:261ad3f3f037 rename sub/ to stuff/
167 |/
167 |/
168 o 1:334e5237836d add sub/*
168 o 1:334e5237836d add sub/*
169 |
169 |
170 o 0:d4892ec57ce2 add large, normal1
170 o 0:d4892ec57ce2 add large, normal1
171
171
172 $ hg locate -r 2
172 $ hg locate -r 2
173 .hglf/large
173 .hglf/large
174 .hglf/stuff/maybelarge.dat
174 .hglf/stuff/maybelarge.dat
175 normal1
175 normal1
176 stuff/normal2
176 stuff/normal2
177 $ hg locate -r 3
177 $ hg locate -r 3
178 .hglf/large
178 .hglf/large
179 .hglf/sub/maybelarge.dat
179 .hglf/sub/maybelarge.dat
180 normal1
180 normal1
181 normal3
181 normal3
182 sub/normal2
182 sub/normal2
183 $ hg locate -r 4
183 $ hg locate -r 4
184 .hglf/sub/maybelarge.dat
184 .hglf/sub/maybelarge.dat
185 normal1
185 normal1
186 sub/normal2
186 sub/normal2
187 $ hg locate -r 5
187 $ hg locate -r 5
188 .hglf/stuff/maybelarge.dat
188 .hglf/stuff/maybelarge.dat
189 normal1
189 normal1
190 stuff/normal2
190 stuff/normal2
191 $ hg update
191 $ hg update
192 getting changed largefiles
192 getting changed largefiles
193 1 largefiles updated, 0 removed
193 1 largefiles updated, 0 removed
194 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
194 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
195 $ cat stuff/normal2
195 $ cat stuff/normal2
196 alsonormal
196 alsonormal
197 blah
197 blah
198 $ md5sum.py stuff/maybelarge.dat
198 $ md5sum.py stuff/maybelarge.dat
199 1dd0b99ff80e19cff409702a1d3f5e15 stuff/maybelarge.dat
199 1dd0b99ff80e19cff409702a1d3f5e15 stuff/maybelarge.dat
200 $ cat .hglf/stuff/maybelarge.dat
200 $ cat .hglf/stuff/maybelarge.dat
201 76236b6a2c6102826c61af4297dd738fb3b1de38
201 76236b6a2c6102826c61af4297dd738fb3b1de38
202 $ cd ..
202 $ cd ..
203
203
204 "lfconvert" error cases
204 "lfconvert" error cases
205 $ hg lfconvert http://localhost/foo foo
205 $ hg lfconvert http://localhost/foo foo
206 abort: http://localhost/foo is not a local Mercurial repo
206 abort: http://localhost/foo is not a local Mercurial repo
207 [255]
207 [255]
208 $ hg lfconvert foo ssh://localhost/foo
208 $ hg lfconvert foo ssh://localhost/foo
209 abort: ssh://localhost/foo is not a local Mercurial repo
209 abort: ssh://localhost/foo is not a local Mercurial repo
210 [255]
210 [255]
211 $ hg lfconvert nosuchrepo foo
211 $ hg lfconvert nosuchrepo foo
212 abort: repository nosuchrepo not found!
212 abort: repository nosuchrepo not found!
213 [255]
213 [255]
214 $ hg share -q -U bigfile-repo shared
214 $ hg share -q -U bigfile-repo shared
215 $ printf 'bogus' > shared/.hg/sharedpath
215 $ printf 'bogus' > shared/.hg/sharedpath
216 $ hg lfconvert shared foo
216 $ hg lfconvert shared foo
217 abort: .hg/sharedpath points to nonexistent directory $TESTTMP/bogus!
217 abort: .hg/sharedpath points to nonexistent directory $TESTTMP/bogus!
218 [255]
218 [255]
219 $ hg lfconvert bigfile-repo largefiles-repo
219 $ hg lfconvert bigfile-repo largefiles-repo
220 initializing destination largefiles-repo
220 initializing destination largefiles-repo
221 abort: repository largefiles-repo already exists!
221 abort: repository largefiles-repo already exists!
222 [255]
222 [255]
223
223
224 add another largefile to the new largefiles repo
224 add another largefile to the new largefiles repo
225 $ cd largefiles-repo
225 $ cd largefiles-repo
226 $ dd if=/dev/zero bs=1k count=1k > anotherlarge 2> /dev/null
226 $ dd if=/dev/zero bs=1k count=1k > anotherlarge 2> /dev/null
227 $ hg add --lfsize=1 anotherlarge
227 $ hg add --lfsize=1 anotherlarge
228 $ hg commit -m "add anotherlarge (should be a largefile)"
228 $ hg commit -m "add anotherlarge (should be a largefile)"
229 $ cat .hglf/anotherlarge
229 $ cat .hglf/anotherlarge
230 3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3
230 3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3
231 $ hg tag mytag
231 $ hg tag mytag
232 $ cd ..
232 $ cd ..
233
233
234 round-trip: converting back to a normal (non-largefiles) repo with
234 round-trip: converting back to a normal (non-largefiles) repo with
235 "lfconvert --to-normal" should give the same as ../bigfile-repo. The
235 "lfconvert --to-normal" should give the same as ../bigfile-repo. The
236 convert extension is disabled to show config items can be loaded without it.
236 convert extension is disabled to show config items can be loaded without it.
237 $ cd largefiles-repo
237 $ cd largefiles-repo
238 $ hg --config extensions.convert=! lfconvert --to-normal . ../normal-repo
238 $ hg --config extensions.convert=! lfconvert --to-normal . ../normal-repo
239 initializing destination ../normal-repo
239 initializing destination ../normal-repo
240 0 additional largefiles cached
240 0 additional largefiles cached
241 scanning source...
241 scanning source...
242 sorting...
242 sorting...
243 converting...
243 converting...
244 7 add large, normal1
244 7 add large, normal1
245 6 add sub/*
245 6 add sub/*
246 5 rename sub/ to stuff/
246 5 rename sub/ to stuff/
247 4 add normal3, modify sub/*
247 4 add normal3, modify sub/*
248 3 remove large, normal3
248 3 remove large, normal3
249 2 merge
249 2 merge
250 1 add anotherlarge (should be a largefile)
250 1 add anotherlarge (should be a largefile)
251 0 Added tag mytag for changeset abacddda7028
251 0 Added tag mytag for changeset abacddda7028
252 $ cd ../normal-repo
252 $ cd ../normal-repo
253 $ cat >> .hg/hgrc <<EOF
253 $ cat >> .hg/hgrc <<EOF
254 > [extensions]
254 > [extensions]
255 > largefiles = !
255 > largefiles = !
256 > EOF
256 > EOF
257
257
258 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
258 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
259 o 7:b5fedc110b9d Added tag mytag for changeset 867ab992ecf4
259 o 7:b5fedc110b9d Added tag mytag for changeset 867ab992ecf4
260 |
260 |
261 o 6:867ab992ecf4 add anotherlarge (should be a largefile)
261 o 6:867ab992ecf4 add anotherlarge (should be a largefile)
262 |
262 |
263 o 5:4884f215abda merge
263 o 5:4884f215abda merge
264 |\
264 |\
265 | o 4:7285f817b77e remove large, normal3
265 | o 4:7285f817b77e remove large, normal3
266 | |
266 | |
267 | o 3:67e3892e3534 add normal3, modify sub/*
267 | o 3:67e3892e3534 add normal3, modify sub/*
268 | |
268 | |
269 o | 2:c96c8beb5d56 rename sub/ to stuff/
269 o | 2:c96c8beb5d56 rename sub/ to stuff/
270 |/
270 |/
271 o 1:020c65d24e11 add sub/*
271 o 1:020c65d24e11 add sub/*
272 |
272 |
273 o 0:117b8328f97a add large, normal1
273 o 0:117b8328f97a add large, normal1
274
274
275 $ hg update
275 $ hg update
276 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
276 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
277 $ hg locate
277 $ hg locate
278 .hgtags
278 .hgtags
279 anotherlarge
279 anotherlarge
280 normal1
280 normal1
281 stuff/maybelarge.dat
281 stuff/maybelarge.dat
282 stuff/normal2
282 stuff/normal2
283 $ [ -d .hg/largefiles ] && echo fail || echo pass
283 $ [ -d .hg/largefiles ] && echo fail || echo pass
284 pass
284 pass
285
285
286 $ cd ..
286 $ cd ..
287
287
288 Clearing the usercache ensures that commitctx doesn't try to cache largefiles
288 Clearing the usercache ensures that commitctx doesn't try to cache largefiles
289 from the working dir on a convert.
289 from the working dir on a convert.
290 $ rm "${USERCACHE}"/*
290 $ rm "${USERCACHE}"/*
291 $ hg convert largefiles-repo
291 $ hg convert largefiles-repo
292 assuming destination largefiles-repo-hg
292 assuming destination largefiles-repo-hg
293 initializing destination largefiles-repo-hg repository
293 initializing destination largefiles-repo-hg repository
294 scanning source...
294 scanning source...
295 sorting...
295 sorting...
296 converting...
296 converting...
297 7 add large, normal1
297 7 add large, normal1
298 6 add sub/*
298 6 add sub/*
299 5 rename sub/ to stuff/
299 5 rename sub/ to stuff/
300 4 add normal3, modify sub/*
300 4 add normal3, modify sub/*
301 3 remove large, normal3
301 3 remove large, normal3
302 2 merge
302 2 merge
303 1 add anotherlarge (should be a largefile)
303 1 add anotherlarge (should be a largefile)
304 0 Added tag mytag for changeset abacddda7028
304 0 Added tag mytag for changeset abacddda7028
305
305
306 $ hg -R largefiles-repo-hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
306 $ hg -R largefiles-repo-hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
307 o 7:2f08f66459b7 Added tag mytag for changeset 17126745edfd
307 o 7:2f08f66459b7 Added tag mytag for changeset 17126745edfd
308 |
308 |
309 o 6:17126745edfd add anotherlarge (should be a largefile)
309 o 6:17126745edfd add anotherlarge (should be a largefile)
310 |
310 |
311 o 5:9cc5aa7204f0 merge
311 o 5:9cc5aa7204f0 merge
312 |\
312 |\
313 | o 4:a5a02de7a8e4 remove large, normal3
313 | o 4:a5a02de7a8e4 remove large, normal3
314 | |
314 | |
315 | o 3:55759520c76f add normal3, modify sub/*
315 | o 3:55759520c76f add normal3, modify sub/*
316 | |
316 | |
317 o | 2:261ad3f3f037 rename sub/ to stuff/
317 o | 2:261ad3f3f037 rename sub/ to stuff/
318 |/
318 |/
319 o 1:334e5237836d add sub/*
319 o 1:334e5237836d add sub/*
320 |
320 |
321 o 0:d4892ec57ce2 add large, normal1
321 o 0:d4892ec57ce2 add large, normal1
322
322
323 Verify will fail (for now) if the usercache is purged before converting, since
323 Verify will fail (for now) if the usercache is purged before converting, since
324 largefiles are not cached in the converted repo's local store by the conversion
324 largefiles are not cached in the converted repo's local store by the conversion
325 process.
325 process.
326 $ cd largefiles-repo-hg
326 $ cd largefiles-repo-hg
327 $ cat >> .hg/hgrc <<EOF
327 $ cat >> .hg/hgrc <<EOF
328 > [experimental]
328 > [experimental]
329 > evolution.createmarkers=True
329 > evolution.createmarkers=True
330 > EOF
330 > EOF
331 $ hg debugobsolete `hg log -r tip -T "{node}"`
331 $ hg debugobsolete `hg log -r tip -T "{node}"`
332 obsoleted 1 changesets
332 obsoleted 1 changesets
333 $ cd ..
333 $ cd ..
334
334
335 $ hg -R largefiles-repo-hg verify --large --lfa
335 $ hg -R largefiles-repo-hg verify --large --lfa
336 checking changesets
336 checking changesets
337 checking manifests
337 checking manifests
338 crosschecking files in changesets and manifests
338 crosschecking files in changesets and manifests
339 checking files
339 checking files
340 checked 8 changesets with 13 changes to 9 files
340 checked 8 changesets with 13 changes to 9 files
341 searching 7 changesets for largefiles
341 searching 7 changesets for largefiles
342 changeset 0:d4892ec57ce2: large references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/2e000fa7e85759c7f4c254d4d9c33ef481e459a7
342 changeset 0:d4892ec57ce2: large references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/2e000fa7e85759c7f4c254d4d9c33ef481e459a7
343 changeset 1:334e5237836d: sub/maybelarge.dat references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c
343 changeset 1:334e5237836d: sub/maybelarge.dat references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c
344 changeset 2:261ad3f3f037: stuff/maybelarge.dat references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c
344 changeset 2:261ad3f3f037: stuff/maybelarge.dat references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c
345 changeset 3:55759520c76f: sub/maybelarge.dat references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/76236b6a2c6102826c61af4297dd738fb3b1de38
345 changeset 3:55759520c76f: sub/maybelarge.dat references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/76236b6a2c6102826c61af4297dd738fb3b1de38
346 changeset 5:9cc5aa7204f0: stuff/maybelarge.dat references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/76236b6a2c6102826c61af4297dd738fb3b1de38
346 changeset 5:9cc5aa7204f0: stuff/maybelarge.dat references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/76236b6a2c6102826c61af4297dd738fb3b1de38
347 changeset 6:17126745edfd: anotherlarge references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3
347 changeset 6:17126745edfd: anotherlarge references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3
348 verified existence of 6 revisions of 4 largefiles
348 verified existence of 6 revisions of 4 largefiles
349 [1]
349 [1]
350 $ hg -R largefiles-repo-hg showconfig paths
350 $ hg -R largefiles-repo-hg showconfig paths
351 [1]
351 [1]
352
352
353
353
354 Avoid a traceback if a largefile isn't available (issue3519)
354 Avoid a traceback if a largefile isn't available (issue3519)
355
355
356 Ensure the largefile can be cached in the source if necessary
356 Ensure the largefile can be cached in the source if necessary
357 $ hg clone -U largefiles-repo issue3519
357 $ hg clone -U largefiles-repo issue3519
358 $ rm -f "${USERCACHE}"/*
358 $ rm -f "${USERCACHE}"/*
359 $ hg lfconvert --to-normal issue3519 normalized3519
359 $ hg lfconvert --to-normal issue3519 normalized3519
360 initializing destination normalized3519
360 initializing destination normalized3519
361 4 additional largefiles cached
361 4 additional largefiles cached
362 scanning source...
362 scanning source...
363 sorting...
363 sorting...
364 converting...
364 converting...
365 7 add large, normal1
365 7 add large, normal1
366 6 add sub/*
366 6 add sub/*
367 5 rename sub/ to stuff/
367 5 rename sub/ to stuff/
368 4 add normal3, modify sub/*
368 4 add normal3, modify sub/*
369 3 remove large, normal3
369 3 remove large, normal3
370 2 merge
370 2 merge
371 1 add anotherlarge (should be a largefile)
371 1 add anotherlarge (should be a largefile)
372 0 Added tag mytag for changeset abacddda7028
372 0 Added tag mytag for changeset abacddda7028
373
373
374 Ensure the abort message is useful if a largefile is entirely unavailable
374 Ensure the abort message is useful if a largefile is entirely unavailable
375 $ rm -rf normalized3519
375 $ rm -rf normalized3519
376 $ rm "${USERCACHE}"/*
376 $ rm "${USERCACHE}"/*
377 $ rm issue3519/.hg/largefiles/*
377 $ rm issue3519/.hg/largefiles/*
378 $ rm largefiles-repo/.hg/largefiles/*
378 $ rm largefiles-repo/.hg/largefiles/*
379 $ hg lfconvert --to-normal issue3519 normalized3519
379 $ hg lfconvert --to-normal issue3519 normalized3519
380 initializing destination normalized3519
380 initializing destination normalized3519
381 anotherlarge: largefile 3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3 not available from file:/*/$TESTTMP/largefiles-repo (glob)
381 anotherlarge: largefile 3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3 not available from file:/*/$TESTTMP/largefiles-repo (glob)
382 stuff/maybelarge.dat: largefile 76236b6a2c6102826c61af4297dd738fb3b1de38 not available from file:/*/$TESTTMP/largefiles-repo (glob)
382 stuff/maybelarge.dat: largefile 76236b6a2c6102826c61af4297dd738fb3b1de38 not available from file:/*/$TESTTMP/largefiles-repo (glob)
383 stuff/maybelarge.dat: largefile 76236b6a2c6102826c61af4297dd738fb3b1de38 not available from file:/*/$TESTTMP/largefiles-repo (glob)
383 stuff/maybelarge.dat: largefile 76236b6a2c6102826c61af4297dd738fb3b1de38 not available from file:/*/$TESTTMP/largefiles-repo (glob)
384 sub/maybelarge.dat: largefile 76236b6a2c6102826c61af4297dd738fb3b1de38 not available from file:/*/$TESTTMP/largefiles-repo (glob)
384 sub/maybelarge.dat: largefile 76236b6a2c6102826c61af4297dd738fb3b1de38 not available from file:/*/$TESTTMP/largefiles-repo (glob)
385 large: largefile 2e000fa7e85759c7f4c254d4d9c33ef481e459a7 not available from file:/*/$TESTTMP/largefiles-repo (glob)
385 large: largefile 2e000fa7e85759c7f4c254d4d9c33ef481e459a7 not available from file:/*/$TESTTMP/largefiles-repo (glob)
386 sub/maybelarge.dat: largefile 76236b6a2c6102826c61af4297dd738fb3b1de38 not available from file:/*/$TESTTMP/largefiles-repo (glob)
386 sub/maybelarge.dat: largefile 76236b6a2c6102826c61af4297dd738fb3b1de38 not available from file:/*/$TESTTMP/largefiles-repo (glob)
387 large: largefile 2e000fa7e85759c7f4c254d4d9c33ef481e459a7 not available from file:/*/$TESTTMP/largefiles-repo (glob)
387 large: largefile 2e000fa7e85759c7f4c254d4d9c33ef481e459a7 not available from file:/*/$TESTTMP/largefiles-repo (glob)
388 stuff/maybelarge.dat: largefile 34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c not available from file:/*/$TESTTMP/largefiles-repo (glob)
388 stuff/maybelarge.dat: largefile 34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c not available from file:/*/$TESTTMP/largefiles-repo (glob)
389 large: largefile 2e000fa7e85759c7f4c254d4d9c33ef481e459a7 not available from file:/*/$TESTTMP/largefiles-repo (glob)
389 large: largefile 2e000fa7e85759c7f4c254d4d9c33ef481e459a7 not available from file:/*/$TESTTMP/largefiles-repo (glob)
390 sub/maybelarge.dat: largefile 34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c not available from file:/*/$TESTTMP/largefiles-repo (glob)
390 sub/maybelarge.dat: largefile 34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c not available from file:/*/$TESTTMP/largefiles-repo (glob)
391 large: largefile 2e000fa7e85759c7f4c254d4d9c33ef481e459a7 not available from file:/*/$TESTTMP/largefiles-repo (glob)
391 large: largefile 2e000fa7e85759c7f4c254d4d9c33ef481e459a7 not available from file:/*/$TESTTMP/largefiles-repo (glob)
392 0 additional largefiles cached
392 0 additional largefiles cached
393 11 largefiles failed to download
393 11 largefiles failed to download
394 abort: all largefiles must be present locally
394 abort: all largefiles must be present locally
395 [255]
395 [255]
396
396
397
397
General Comments 0
You need to be logged in to leave comments. Login now