Show More
@@ -371,6 +371,26 b' Extra junk data at the end should get ov' | |||||
371 | 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> tags exited 0 after * seconds (glob) |
|
371 | 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> tags exited 0 after * seconds (glob) | |
372 | 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> blackbox -l 6 |
|
372 | 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> blackbox -l 6 | |
373 |
|
373 | |||
|
374 | Junk data + missing cache entries results in hg further corrupting the | |||
|
375 | cache, then failing. | |||
|
376 | ||||
|
377 | $ rm -f .hg/cache/tags2-visible | |||
|
378 | $ truncate .hg/cache/hgtagsfnodes1 -s -10 | |||
|
379 | $ hg debugtagscache | tail -2 | |||
|
380 | 4 0c192d7d5e6b78a714de54a2e9627952a877e25a 0c04f2a8af31de17fab7422878ee5a2dadbc943d | |||
|
381 | 5 8dbfe60eff306a54259cfe007db9e330e7ecf866 0c04f2a8af31de17fab7ffffffffffffffffffff | |||
|
382 | $ hg tags | |||
|
383 | abort: data/.hgtags.i@0c04f2a8af31: no match found! | |||
|
384 | [255] | |||
|
385 | $ hg debugtagscache | tail -2 | |||
|
386 | 4 0c192d7d5e6b78a714de54a2e9627952a877e25a 0c04f2a8af31de17fab7422878ee5a2dadbc943d | |||
|
387 | 5 8dbfe60eff306a54259cfe007db9e330e7ecf866 0c04f2a8af31de17fab7ffffffffffffffffffff | |||
|
388 | # fix up the cache | |||
|
389 | $ rm .hg/cache/hgtagsfnodes1 | |||
|
390 | $ hg tags -q | |||
|
391 | tip | |||
|
392 | bar | |||
|
393 | ||||
374 | #if unix-permissions no-root |
|
394 | #if unix-permissions no-root | |
375 | Errors writing to .hgtags fnodes cache are silently ignored |
|
395 | Errors writing to .hgtags fnodes cache are silently ignored | |
376 |
|
396 |
General Comments 0
You need to be logged in to leave comments.
Login now