Mercurial > hg
changeset 16904:9d0f988364bd
test-remove-new: integrate into test-remove.t
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sun, 10 Jun 2012 18:28:42 +0200 |
parents | a1a57d3fe0eb |
children | 671c73d523cf |
files | tests/test-remove-new.t tests/test-remove.t |
diffstat | 2 files changed, 10 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- 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]