Mercurial > hg > mercurial-source
diff tests/test-backout @ 5608:de620356064f
backout: disallow across branches (issue655)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 01 Dec 2007 13:09:27 -0600 |
parents | f6e961c0155b |
children | bc1ba9124799 |
line wrap: on
line diff
--- a/tests/test-backout +++ b/tests/test-backout @@ -37,6 +37,22 @@ hg backout -d '3 0' --merge tip cat a 2>/dev/null || echo cat: a: No such file or directory +echo '# across branch' +cd .. +hg init branch +cd branch +echo a > a +hg ci -Am0 -d '0 0' +echo b > b +hg ci -Am1 -d '0 0' +hg co -C 0 +# should fail +hg backout -d '0 0' 1 +echo c > c +hg ci -Am2 -d '0 0' +# should fail +hg backout -d '0 0' 1 + echo '# backout with merge' cd .. hg init merge