Mercurial > public > mercurial-scm > hg-stable
diff tests/test-fetch @ 9093:0b2b269ba3d0
branch heads: fix regression introduced in e67e5b60e55f (issue1726)
For merge nodes it is not adequate to only check a single possible
branch head for whether it is an ancestor of the latest head, but it
needs to be done for each possible branch head.
author | Henrik Stuart <hg@hstuart.dk> |
---|---|
date | Thu, 09 Jul 2009 20:49:02 +0200 |
parents | aa1a87f7544f |
children | a85a3d398cc3 |
line wrap: on
line diff
--- a/tests/test-fetch Thu Jul 09 11:59:18 2009 +0200 +++ b/tests/test-fetch Thu Jul 09 20:49:02 2009 +0200 @@ -185,6 +185,18 @@ hg --cwd ib2 fetch ../ib1 rm -fr ib1 ib2 +echo % test issue1726 +hg init i1726r1 +echo a > i1726r1/a +hg --cwd i1726r1 ci -Am base +hg clone i1726r1 i1726r2 +echo b > i1726r1/a +hg --cwd i1726r1 ci -m second +echo c > i1726r2/a +hg --cwd i1726r2 ci -m third +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' + "$TESTDIR/killdaemons.py" true