test-mq-caches: look up a revision that does not exist to force cache creation
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 24 Oct 2006 17:49:48 -0300
changeset 3501 89820e9b94f2
parent 3500 bd8339976504
child 3502 8dc14d630b29
test-mq-caches: look up a revision that does not exist to force cache creation
tests/test-mq-caches
--- 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