--- a/tests/test-fetch Tue Mar 17 11:47:40 2009 -0400
+++ b/tests/test-fetch Tue Mar 17 11:34:40 2009 -0400
@@ -170,6 +170,21 @@
hg -R n2 parents --template '{rev}\n'
rm -fr n1 n2
+echo % test fetch with inactive branches
+hg init ib1
+echo a > ib1/a
+hg --cwd ib1 ci -Am base
+hg --cwd ib1 branch second
+echo b > ib1/b
+hg --cwd ib1 ci -Am onsecond
+hg --cwd ib1 branch -f default
+echo c > ib1/c
+hg --cwd ib1 ci -Am newdefault
+hg clone ib1 ib2
+echo % fetch should succeed
+hg --cwd ib2 fetch ../ib1
+rm -fr ib1 ib2
+
"$TESTDIR/killdaemons.py"
true