Mercurial > evolve
changeset 3876:c464abfd7f9d
tests: add a test to demonstrate issue5925
The issue will be fixed in next patch.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 08 Jul 2018 22:50:16 +0530 |
parents | a93e81733549 |
children | 96bbea985b25 |
files | tests/test-amend-patch.t |
diffstat | 1 files changed, 32 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-amend-patch.t Mon Jul 09 01:18:40 2018 +0200 +++ b/tests/test-amend-patch.t Sun Jul 08 22:50:16 2018 +0530 @@ -1156,3 +1156,35 @@ Nothing happens in that case we dont care about the node ID. Look the above 3-4 tests to realize I was testing that too. + +Aborting by passing an empty patch file (issue5925) +--------------------------------------------------- + + $ cat > editor.sh <<EOF + > #!/bin/sh + > cat > \$1 <<ENDOF + > ENDOF + > EOF + + $ HGEDITOR="sh ./editor.sh" hg amend --patch + + $ hg exp + # HG changeset patch + # User RandomUser + # Date 123456 1200 + # Fri Jan 02 09:57:36 1970 -0020 + # Branch stable + # Node ID 958c723d2247bedf32c155b7976e79b82332c02e + # Parent 0000000000000000000000000000000000000000 + + + + $ hg parents + changeset: 19:958c723d2247 + branch: stable + bookmark: foo + tag: tip + parent: -1:000000000000 + user: RandomUser + date: Fri Jan 02 09:57:36 1970 -0020 +