diff tests/test-mq-caches @ 6160:3ee3bc5d06c5

tests: hide the name of the branch cache file
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Thu, 21 Feb 2008 16:22:31 -0300
parents a7af0eeae8a3
children 816b708f23af
line wrap: on
line diff
--- a/tests/test-mq-caches	Thu Feb 21 16:22:31 2008 -0300
+++ b/tests/test-mq-caches	Thu Feb 21 16:22:31 2008 -0300
@@ -1,18 +1,18 @@
 #!/bin/sh
 
+branches=.hg/branch.cache
 echo '[extensions]' >> $HGRCPATH
 echo 'hgext.mq=' >> $HGRCPATH
 
 show_branch_cache()
 {
-    branches=.hg/branch.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
     else
-	echo No $branches
+	echo No branch cache
     fi
     if [ "$1" = 1 ]; then
 	for b in foo bar; do
@@ -61,7 +61,7 @@
 
 echo
 echo '# removing the cache'
-rm .hg/branch.cache
+rm $branches
 show_branch_cache 1
 
 echo