comparison tests/test-amend-patch.t @ 3914:96945ea908df stable

branching: merge default into stable The stable branch of Mercurial core now contains Mercurial 4.7 so evolve branch policy requires this merge. The @ bookmark is in the right location, so people doing clone will get to the latest release.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 31 Jul 2018 12:52:06 +0200
parents 96bbea985b25
children 537fd9a86c06 900668a93629
comparison
equal deleted inserted replaced
3901:f2b8429db565 3914:96945ea908df
1154 Changing the Node ID of the patch 1154 Changing the Node ID of the patch
1155 --------------------------------- 1155 ---------------------------------
1156 1156
1157 Nothing happens in that case we dont care about the node ID. Look the above 3-4 1157 Nothing happens in that case we dont care about the node ID. Look the above 3-4
1158 tests to realize I was testing that too. 1158 tests to realize I was testing that too.
1159
1160 Aborting by passing an empty patch file (issue5925)
1161 ---------------------------------------------------
1162
1163 $ cat > editor.sh <<EOF
1164 > #!/bin/sh
1165 > cat > \$1 <<ENDOF
1166 > ENDOF
1167 > EOF
1168
1169 $ HGEDITOR="sh ./editor.sh" hg amend --patch
1170 abort: empty patch file, amend aborted
1171 [255]
1172
1173 $ hg exp
1174 # HG changeset patch
1175 # User RandomUser
1176 # Date 123456 1200
1177 # Fri Jan 02 09:57:36 1970 -0020
1178 # Branch stable
1179 # Node ID f14ecd7121e63915ac93edbad7f60f605e62dd52
1180 # Parent fc57c20be380f2878f4db139dad66d6cfb42ec62
1181 I am a message which is testing change of message
1182
1183 diff --git a/a b/a
1184 new file mode 100755
1185 --- /dev/null
1186 +++ b/a
1187 @@ -0,0 +1,3 @@
1188 +Gello
1189 +Kello
1190 +betto
1191
1192 $ hg parents
1193 changeset: 18:f14ecd7121e6
1194 branch: stable
1195 bookmark: foo
1196 tag: tip
1197 parent: 3:fc57c20be380
1198 user: RandomUser
1199 date: Fri Jan 02 09:57:36 1970 -0020
1200 summary: I am a message which is testing change of message
1201