Mercurial > hg-stable
view tests/test-issue1175 @ 10251:a19d2993385d stable
subrepo: fix merging of already merged subrepos (issue1986)
This fixes a bug seen when merging a main repo which contains a subrepo when
both repos have been merged before. Each repo (main and sub) has two
branches, both of which have been merged before.
In a subrepo, if the revision to merge to is an ancestor of the current rev,
then the merge should be a noop.
Test provided by Steve Losh.
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Fri, 15 Jan 2010 21:08:04 +0100 |
parents | 0d714a48ab53 |
children |
line wrap: on
line source
#!/bin/sh rm -rf a hg init a cd a touch a hg ci -Am0 hg mv a a1 hg ci -m1 hg co 0 hg mv a a2 hg up hg ci -m2 touch a hg ci -Am3 hg mv a b hg ci -Am4 a hg ci --debug --traceback -Am5 b hg verify hg export --git tip