Test case for #295
authorBrendan Cully <brendan@kublai.com>
Fri, 23 Jun 2006 17:21:04 -0700
changeset 2492 2f4addf56715
parent 2491 ffde9eb23f59
child 2493 9c660e691e90
Test case for #295
tests/test-backout
tests/test-backout.out
--- a/tests/test-backout	Fri Jun 23 16:42:48 2006 -0700
+++ b/tests/test-backout	Fri Jun 23 17:21:04 2006 -0700
@@ -48,4 +48,16 @@
 hg commit -d '4 0' -m d
 cat a
 
+echo '# backout should not back out subsequent changesets'
+hg init onecs
+cd onecs
+echo 1 > a
+hg commit -d '0 0' -A -m a
+echo 2 >> a
+hg commit -d '1 0' -m b
+echo 1 > b
+hg commit -d '2 0' -A -m c
+hg backout -d '3 0' 1
+hg locate b
+
 exit 0
--- a/tests/test-backout.out	Fri Jun 23 16:42:48 2006 -0700
+++ b/tests/test-backout.out	Fri Jun 23 17:21:04 2006 -0700
@@ -21,3 +21,9 @@
 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
 (branch merge, don't forget to commit)
 line 1
+# backout should not back out subsequent changesets
+adding a
+adding b
+reverting a
+changeset 3:4cbb1e70196a backs out changeset 1:22bca4c721e5
+b