##// END OF EJS Templates
largefiles: test coverage of handling of store corruption...
Mads Kiilerich -
r26822:d881c072 stable
parent child Browse files
Show More
@@ -179,3 +179,25 b' conditional above.'
179 179 $ find src/.hg/largefiles/* | egrep "(dirstate|$hash)" | sort
180 180 src/.hg/largefiles/dirstate
181 181 src/.hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020
182
183 Inject corruption into the largefiles store and see how update handles that:
184
185 $ cd src
186 $ hg up -qC
187 $ cat large
188 modified
189 $ rm large
190 $ cat .hglf/large
191 e2fb5f2139d086ded2cb600d5a91a196e76bf020
192 $ mv .hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020 ..
193 $ echo corruption > .hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020
194 (the following update will put the corrupted file into the working directory
195 where it will show up as a change)
196 $ hg up -C
197 getting changed largefiles
198 1 largefiles updated, 0 removed
199 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
200 $ hg st
201 M large
202 ? z
203 $ rm .hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020
General Comments 0
You need to be logged in to leave comments. Login now