comparison tests/test-mq-caches @ 3501:89820e9b94f2

test-mq-caches: look up a revision that does not exist to force cache creation
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 24 Oct 2006 17:49:48 -0300
parents fbf8320f25c8
children 9dcf9d45cab8
comparison
equal deleted inserted replaced
3500:bd8339976504 3501:89820e9b94f2
4 echo 'hgext.mq=' >> $HGRCPATH 4 echo 'hgext.mq=' >> $HGRCPATH
5 5
6 show_branch_cache() 6 show_branch_cache()
7 { 7 {
8 branches=.hg/branches.cache 8 branches=.hg/branches.cache
9 # force cache (re)generation
10 hg log -r does-not-exist 2> /dev/null
9 hg log -r tip --template 'tip: #rev#\n' 11 hg log -r tip --template 'tip: #rev#\n'
10 if [ -f $branches ]; then 12 if [ -f $branches ]; then
11 sort $branches 13 sort $branches
12 else 14 else
13 echo No $branches 15 echo No $branches