tests/test-backout
changeset 5568 de620356064f
parent 4726 f6e961c0155b
child 6161 bc1ba9124799
--- a/tests/test-backout	Sat Dec 01 12:54:34 2007 -0600
+++ b/tests/test-backout	Sat Dec 01 13:09:27 2007 -0600
@@ -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