comparison tests/test-debugcommands.t @ 32265:ccef71de7d41

caches: introduce a 'debugupdatecaches' command That command make sure caches are updated. This is based on 'localrepo.updatecaches' so when we move support for new cache in that function this command will benefit from it.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 02 May 2017 21:35:06 +0200
parents 78ac7061f840
children c2380b448265
comparison
equal deleted inserted replaced
32264:a72caf0af38e 32265:ccef71de7d41
107 4 3 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 4 (glob) 107 4 3 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 4 (glob)
108 5 4 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 0 (glob) 108 5 4 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 0 (glob)
109 6 5 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 1 (glob) 109 6 5 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 1 (glob)
110 7 6 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 2 (glob) 110 7 6 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 2 (glob)
111 8 7 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 3 (glob) 111 8 7 -1 ??? ??? ??? ??? ??? 0 ??? ???? ? 1 3 (glob)
112
113 Test cache warming command
114
115 $ rm -rf .hg/cache/
116 $ hg debugupdatecaches --debug
117 $ ls -r .hg/cache/*
118 .hg/cache/rbc-revs-v1
119 .hg/cache/rbc-names-v1
120 .hg/cache/branch2-served
121
112 $ cd .. 122 $ cd ..
113 123
114 Test internal debugstacktrace command 124 Test internal debugstacktrace command
115 125
116 $ cat > debugstacktrace.py << EOF 126 $ cat > debugstacktrace.py << EOF