##// END OF EJS Templates
branchcache: add some blank line in a test...
marmoute -
r52411:c7e81615 default
parent child Browse files
Show More
@@ -825,6 +825,7 b' recovery from invalid cache revs file wi'
825 825 truncating cache/rbc-revs-v1 to 160
826 826 $ f --size .hg/cache/rbc-revs*
827 827 .hg/cache/rbc-revs-v1: size=160
828
828 829 recovery from invalid cache file with partial last record
829 830 $ mv .hg/cache/rbc-revs-v1 .
830 831 $ f -qDB 119 rbc-revs-v1 > .hg/cache/rbc-revs-v1
@@ -835,6 +836,7 b' recovery from invalid cache file with pa'
835 836 truncating cache/rbc-revs-v1 to 112
836 837 $ f --size .hg/cache/rbc-revs*
837 838 .hg/cache/rbc-revs-v1: size=160
839
838 840 recovery from invalid cache file with missing record - no truncation
839 841 $ mv .hg/cache/rbc-revs-v1 .
840 842 $ f -qDB 112 rbc-revs-v1 > .hg/cache/rbc-revs-v1
@@ -842,6 +844,7 b' recovery from invalid cache file with mi'
842 844 5
843 845 $ f --size .hg/cache/rbc-revs*
844 846 .hg/cache/rbc-revs-v1: size=160
847
845 848 recovery from invalid cache file with some bad records
846 849 $ mv .hg/cache/rbc-revs-v1 .
847 850 $ f -qDB 8 rbc-revs-v1 > .hg/cache/rbc-revs-v1
@@ -860,6 +863,7 b' recovery from invalid cache file with so'
860 863 $ f --size --hexdump --bytes=16 .hg/cache/rbc-revs*
861 864 .hg/cache/rbc-revs-v1: size=160
862 865 0000: 19 70 9c 5a 00 00 00 00 dd 6b 44 0d 00 00 00 01 |.p.Z.....kD.....|
866
863 867 cache is updated when committing
864 868 $ hg branch i-will-regret-this
865 869 marked working directory as branch i-will-regret-this
@@ -867,6 +871,7 b' cache is updated when committing'
867 871 $ f --size .hg/cache/rbc-*
868 872 .hg/cache/rbc-names-v1: size=111
869 873 .hg/cache/rbc-revs-v1: size=168
874
870 875 update after rollback - the cache will be correct but rbc-names will will still
871 876 contain the branch name even though it no longer is used
872 877 $ hg up -qr '.^'
@@ -891,6 +896,7 b' contain the branch name even though it n'
891 896 0070: f8 94 c2 56 80 00 00 03 f3 44 76 37 00 00 00 05 |...V.....Dv7....|
892 897 0080: a5 8c a5 d3 00 00 00 05 df 34 3b 0d 00 00 00 05 |.........4;.....|
893 898 0090: c9 14 c9 9f 00 00 00 06 cd 21 a8 0b 80 00 00 05 |.........!......|
899
894 900 cache is updated/truncated when stripping - it is thus very hard to get in a
895 901 situation where the cache is out of sync and the hash check detects it
896 902 $ hg --config extensions.strip= strip -r tip --nob
General Comments 0
You need to be logged in to leave comments. Login now