mirror of
https://github.com/facebook/sapling.git
synced 2025-01-06 21:48:36 +03:00
tests: the Rust ContentStore always creates .hg/store/packs
Summary: The Python one only does it when needed, let's fix the 2 tests that were relying on this. Reviewed By: quark-zju Differential Revision: D19393501 fbshipit-source-id: 94e004999045264adce2ffa17b4697583ee0fcbd
This commit is contained in:
parent
f1c8af3297
commit
b1f3e37e43
@ -42,11 +42,7 @@
|
||||
$ hg pull -q
|
||||
$ hg up -q tip
|
||||
|
||||
# Test pack local data
|
||||
$ test -d .hg/store/packs
|
||||
[1]
|
||||
|
||||
# new loose file is created
|
||||
# new pack file is created
|
||||
$ echo "new commit" > new_file
|
||||
$ echo "something else" > base_file
|
||||
$ hg commit -qAm "one more node"
|
||||
|
@ -382,40 +382,19 @@ Test limiting the max delta chain length
|
||||
1bb2e6237e03 000000000000 8 (missing)
|
||||
|
||||
|
||||
# Test repacking loose files
|
||||
$ [ -d .hg/store/packs ]
|
||||
[1]
|
||||
|
||||
# new loose file is created
|
||||
$ echo "new commit" > new_file
|
||||
$ hg commit -qAm "one more node"
|
||||
1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over 0.00s (?)
|
||||
|
||||
# repacking all
|
||||
$ hg repack
|
||||
$ findfilessorted .hg/store/packs
|
||||
.hg/store/packs/114243ab99c9697960e23423df9d98f259a0159d.histidx
|
||||
.hg/store/packs/114243ab99c9697960e23423df9d98f259a0159d.histpack
|
||||
.hg/store/packs/6fdfb86776d8d88be3b98aa72ae1c06ca54765f2.dataidx
|
||||
.hg/store/packs/6fdfb86776d8d88be3b98aa72ae1c06ca54765f2.datapack
|
||||
|
||||
# check the commit data
|
||||
$ hg cat -r . new_file
|
||||
new commit
|
||||
|
||||
# Verify that temporary datapacks are removed
|
||||
$ touch -a -t 201901010000 $TESTTMP/hgcache/master/packs/foo.datapack-tmp
|
||||
$ find $CACHEDIR -type f | sort
|
||||
$TESTTMP/hgcache/master/packs/28c4bd4f9174a2c5f750bd5612d53e3212e0aaf9.histidx
|
||||
$TESTTMP/hgcache/master/packs/28c4bd4f9174a2c5f750bd5612d53e3212e0aaf9.histpack
|
||||
$TESTTMP/hgcache/master/packs/425d7ea48f627e2a50e6e3d1ea374ab4be7c1812.dataidx
|
||||
$TESTTMP/hgcache/master/packs/425d7ea48f627e2a50e6e3d1ea374ab4be7c1812.datapack
|
||||
$TESTTMP/hgcache/master/packs/094b530486dad4427a0faf6bcbc031571b99ca24.histidx
|
||||
$TESTTMP/hgcache/master/packs/094b530486dad4427a0faf6bcbc031571b99ca24.histpack
|
||||
$TESTTMP/hgcache/master/packs/c155d24742424ff6f6eec6c54d232c3f550b6922.dataidx
|
||||
$TESTTMP/hgcache/master/packs/c155d24742424ff6f6eec6c54d232c3f550b6922.datapack
|
||||
$TESTTMP/hgcache/master/packs/foo.datapack-tmp
|
||||
$TESTTMP/hgcache/master/packs/repacklock
|
||||
$ hg repack
|
||||
$ find $CACHEDIR -type f | sort
|
||||
$TESTTMP/hgcache/master/packs/28c4bd4f9174a2c5f750bd5612d53e3212e0aaf9.histidx
|
||||
$TESTTMP/hgcache/master/packs/28c4bd4f9174a2c5f750bd5612d53e3212e0aaf9.histpack
|
||||
$TESTTMP/hgcache/master/packs/425d7ea48f627e2a50e6e3d1ea374ab4be7c1812.dataidx
|
||||
$TESTTMP/hgcache/master/packs/425d7ea48f627e2a50e6e3d1ea374ab4be7c1812.datapack
|
||||
$TESTTMP/hgcache/master/packs/094b530486dad4427a0faf6bcbc031571b99ca24.histidx
|
||||
$TESTTMP/hgcache/master/packs/094b530486dad4427a0faf6bcbc031571b99ca24.histpack
|
||||
$TESTTMP/hgcache/master/packs/c155d24742424ff6f6eec6c54d232c3f550b6922.dataidx
|
||||
$TESTTMP/hgcache/master/packs/c155d24742424ff6f6eec6c54d232c3f550b6922.datapack
|
||||
$TESTTMP/hgcache/master/packs/repacklock
|
||||
|
Loading…
Reference in New Issue
Block a user