diff tests/test-fetch @ 10580:612c142b7a82 stable

fetch: fix newheads calculation (issue2047)
author Sune Foldager <cryo@cyanite.org>
date Wed, 03 Mar 2010 22:32:51 +0100
parents ace3cf2bc991
children 3fb2f7cb5ea5
line wrap: on
line diff
--- a/tests/test-fetch	Wed Mar 03 22:04:59 2010 +0100
+++ b/tests/test-fetch	Wed Mar 03 22:32:51 2010 +0100
@@ -197,6 +197,20 @@
 HGMERGE=true hg --cwd i1726r2 fetch ../i1726r1 | sed 's/new changeset 3:[0-9a-zA-Z]* /new changeset 3 /'
 hg --cwd i1726r2 heads default --template '{rev}\n'
 
+echo
+echo % test issue2047
+hg -q init i2047a
+cd i2047a
+echo a > a
+hg -q ci -Am a
+hg -q branch stable
+echo b > b
+hg -q ci -Am b
+cd ..
+hg -q clone -r 0 i2047a i2047b
+cd i2047b
+hg fetch
+
 "$TESTDIR/killdaemons.py"
 
 true