diff 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
line wrap: on
line diff
--- a/tests/test-mq-caches
+++ b/tests/test-mq-caches
@@ -6,6 +6,8 @@ echo 'hgext.mq=' >> $HGRCPATH
 show_branch_cache()
 {
     branches=.hg/branches.cache
+    # force cache (re)generation
+    hg log -r does-not-exist 2> /dev/null
     hg log -r tip --template 'tip: #rev#\n'
     if [ -f $branches ]; then
 	sort $branches