test-remove-new: integrate into test-remove.t
authorAdrian Buehlmann <adrian@cadifra.com>
Sun, 10 Jun 2012 18:28:42 +0200
changeset 16904 9d0f988364bd
parent 16903 a1a57d3fe0eb
child 16905 671c73d523cf
test-remove-new: integrate into test-remove.t
tests/test-remove-new.t
tests/test-remove.t
--- a/tests/test-remove-new.t	Sun Jun 10 17:35:09 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-test that 'hg commit' does not crash if the user removes a newly added file
-
-  $ hg init
-  $ echo This is file a1 > a
-  $ hg add a
-  $ hg commit -m "commit #0"
-  $ touch b
-  $ hg add b
-  $ rm b
-  $ hg commit -A -m"comment #1"
-  removing b
-  nothing changed
-  [1]
--- a/tests/test-remove.t	Sun Jun 10 17:35:09 2012 +0200
+++ b/tests/test-remove.t	Sun Jun 10 18:28:42 2012 +0200
@@ -254,3 +254,13 @@
   $ hg ci -m remove
   $ ls issue1861
   x
+
+test that commit does not crash if the user removes a newly added file
+
+  $ touch f1
+  $ hg add f1
+  $ rm f1
+  $ hg ci -A -mx
+  removing f1
+  nothing changed
+  [1]