diff tests/test-newbranch @ 5988:ee317dbfb9d0

update the branch cache at the end of addchangegroup This should avoid a bad performance problem when the branch cache is not up-to-date, and hgweb can't write an updated version because it lacks permissions.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sun, 03 Feb 2008 21:03:46 -0200
parents bbc97d419b16
children 3ee3bc5d06c5
line wrap: on
line diff
--- a/tests/test-newbranch	Sun Feb 03 21:03:46 2008 -0200
+++ b/tests/test-newbranch	Sun Feb 03 21:03:46 2008 -0200
@@ -41,6 +41,15 @@
 hg log -qr foo
 cat .hg/branch.cache
 
+echo % push should update the branch cache
+hg init ../target
+echo % pushing just rev 0
+hg push -qr 0 ../target
+cat ../target/.hg/branch.cache
+echo % pushing everything
+hg push -qf ../target
+cat ../target/.hg/branch.cache
+
 echo % update with no arguments: tipmost revision of the current branch
 hg up -q -C 0
 hg up -q