Show More
@@ -10,7 +10,7 b'' | |||||
10 |
|
10 | |||
11 | $ nlinksdir() |
|
11 | $ nlinksdir() | |
12 | > { |
|
12 | > { | |
13 |
> find |
|
13 | > find "$@" -type f | python $TESTTMP/nlinks.py | |
14 | > } |
|
14 | > } | |
15 |
|
15 | |||
16 | Some implementations of cp can't create hardlinks (replaces 'cp -al' on Linux): |
|
16 | Some implementations of cp can't create hardlinks (replaces 'cp -al' on Linux): | |
@@ -168,6 +168,11 b' Push to repo r1 should break up most har' | |||||
168 | 2 r2/.hg/store/data/f1.i |
|
168 | 2 r2/.hg/store/data/f1.i | |
169 | [12] r2/\.hg/store/fncache (re) |
|
169 | [12] r2/\.hg/store/fncache (re) | |
170 |
|
170 | |||
|
171 | #if hardlink-whitelisted | |||
|
172 | $ nlinksdir r2/.hg/store/fncache | |||
|
173 | 2 r2/.hg/store/fncache | |||
|
174 | #endif | |||
|
175 | ||||
171 | $ hg -R r2 verify |
|
176 | $ hg -R r2 verify | |
172 | checking changesets |
|
177 | checking changesets | |
173 | checking manifests |
|
178 | checking manifests | |
@@ -193,6 +198,10 b' Committing a change to f1 in r1 must bre' | |||||
193 | 1 r2/.hg/store/data/f1.i |
|
198 | 1 r2/.hg/store/data/f1.i | |
194 | [12] r2/\.hg/store/fncache (re) |
|
199 | [12] r2/\.hg/store/fncache (re) | |
195 |
|
200 | |||
|
201 | #if hardlink-whitelisted | |||
|
202 | $ nlinksdir r2/.hg/store/fncache | |||
|
203 | 2 r2/.hg/store/fncache | |||
|
204 | #endif | |||
196 |
|
205 | |||
197 | $ cd r3 |
|
206 | $ cd r3 | |
198 | $ hg tip --template '{rev}:{node|short}\n' |
|
207 | $ hg tip --template '{rev}:{node|short}\n' | |
@@ -246,6 +255,12 b' r4 has hardlinks in the working dir (not' | |||||
246 | 2 r4/d1/f2 |
|
255 | 2 r4/d1/f2 | |
247 | 2 r4/f1 |
|
256 | 2 r4/f1 | |
248 |
|
257 | |||
|
258 | #if hardlink-whitelisted | |||
|
259 | $ nlinksdir r4/.hg/undo.backup.dirstate r4/.hg/undo.dirstate | |||
|
260 | 4 r4/.hg/undo.backup.dirstate | |||
|
261 | 4 r4/.hg/undo.dirstate | |||
|
262 | #endif | |||
|
263 | ||||
249 | Update back to revision 11 in r4 should break hardlink of file f1: |
|
264 | Update back to revision 11 in r4 should break hardlink of file f1: | |
250 |
|
265 | |||
251 | $ hg -R r4 up 11 |
|
266 | $ hg -R r4 up 11 | |
@@ -289,6 +304,11 b' Update back to revision 11 in r4 should ' | |||||
289 | 2 r4/d1/f2 |
|
304 | 2 r4/d1/f2 | |
290 | 1 r4/f1 |
|
305 | 1 r4/f1 | |
291 |
|
306 | |||
|
307 | #if hardlink-whitelisted | |||
|
308 | $ nlinksdir r4/.hg/undo.backup.dirstate r4/.hg/undo.dirstate | |||
|
309 | 4 r4/.hg/undo.backup.dirstate | |||
|
310 | 4 r4/.hg/undo.dirstate | |||
|
311 | #endif | |||
292 |
|
312 | |||
293 | Test hardlinking outside hg: |
|
313 | Test hardlinking outside hg: | |
294 |
|
314 |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now