Show More
@@ -10,7 +10,7 b'' | |||
|
10 | 10 | |
|
11 | 11 | $ nlinksdir() |
|
12 | 12 | > { |
|
13 |
> find |
|
|
13 | > find "$@" -type f | python $TESTTMP/nlinks.py | |
|
14 | 14 | > } |
|
15 | 15 | |
|
16 | 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 | 168 | 2 r2/.hg/store/data/f1.i |
|
169 | 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 | 176 | $ hg -R r2 verify |
|
172 | 177 | checking changesets |
|
173 | 178 | checking manifests |
@@ -193,6 +198,10 b' Committing a change to f1 in r1 must bre' | |||
|
193 | 198 | 1 r2/.hg/store/data/f1.i |
|
194 | 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 | 206 | $ cd r3 |
|
198 | 207 | $ hg tip --template '{rev}:{node|short}\n' |
@@ -246,6 +255,12 b' r4 has hardlinks in the working dir (not' | |||
|
246 | 255 | 2 r4/d1/f2 |
|
247 | 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 | 264 | Update back to revision 11 in r4 should break hardlink of file f1: |
|
250 | 265 | |
|
251 | 266 | $ hg -R r4 up 11 |
@@ -289,6 +304,11 b' Update back to revision 11 in r4 should ' | |||
|
289 | 304 | 2 r4/d1/f2 |
|
290 | 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 | 313 | Test hardlinking outside hg: |
|
294 | 314 |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now