##// END OF EJS Templates
tests: replace truncate(1) with inline python...
Matt Harbison -
r44860:56f089e4 default
parent child Browse files
Show More
@@ -374,7 +374,11 b' Extra junk data at the end should get ov'
374 On junk data + missing cache entries, hg also overwrites the junk.
374 On junk data + missing cache entries, hg also overwrites the junk.
375
375
376 $ rm -f .hg/cache/tags2-visible
376 $ rm -f .hg/cache/tags2-visible
377 $ truncate .hg/cache/hgtagsfnodes1 -s -10
377 >>> import os
378 >>> with open(".hg/cache/hgtagsfnodes1", "ab+") as fp:
379 ... fp.seek(-10, os.SEEK_END) and None
380 ... fp.truncate() and None
381
378 $ hg debugtagscache | tail -2
382 $ hg debugtagscache | tail -2
379 4 0c192d7d5e6b78a714de54a2e9627952a877e25a 0c04f2a8af31de17fab7422878ee5a2dadbc943d
383 4 0c192d7d5e6b78a714de54a2e9627952a877e25a 0c04f2a8af31de17fab7422878ee5a2dadbc943d
380 5 8dbfe60eff306a54259cfe007db9e330e7ecf866 missing/invalid
384 5 8dbfe60eff306a54259cfe007db9e330e7ecf866 missing/invalid
General Comments 0
You need to be logged in to leave comments. Login now