--- a/tests/test-split.t Tue Feb 20 09:35:16 2018 +0100
+++ b/tests/test-split.t Tue Feb 20 09:35:16 2018 +0100
@@ -79,7 +79,7 @@
record change 2/2 to '_d'? [Ynesfdaq?] n
created new head
- Done splitting? [yNq?] N
+ Done splitting? [yNdq?] N
diff --git a/_d b/_d
new file mode 100644
examine changes to '_d'? [Ynesfdaq?] y
@@ -201,7 +201,7 @@
record change 2/2 to '_c'? [Ynesfdaq?] n
created new head
- Done splitting? [yNq?] y
+ Done splitting? [yNdq?] y
2 new orphan changesets
Stop before splitting the commit completely creates a commit with all the
@@ -302,7 +302,7 @@
examine changes to '_d'? [Ynesfdaq?] n
created new head
- Done splitting? [yNq?] y
+ Done splitting? [yNdq?] y
$ hg log -G -r "3f134f739075::"
@ changeset: 16:452a26648478
| bookmark: bookA
@@ -454,7 +454,7 @@
new file mode 100644
examine changes to 'celeste'? [Ynesfdaq?] N
- Done splitting? [yNq?] Y
+ Done splitting? [yNdq?] Y
diff --git a/celeste b/celeste
new file mode 100644
examine changes to 'celeste'? [Ynesfdaq?] Y
@@ -551,7 +551,7 @@
new file mode 100644
examine changes to 'SPLIT2'? [Ynesfdaq?] N
- Done splitting? [yNq?] N
+ Done splitting? [yNdq?] N
diff --git a/SPLIT2 b/SPLIT2
new file mode 100644
examine changes to 'SPLIT2'? [Ynesfdaq?] Y
@@ -687,13 +687,91 @@
? - ? (display help)
examine changes to 'SPLIT4'? [Ynesfdaq?] d
- Done splitting? [yNq?] ?
+ Done splitting? [yNdq?] ?
y - yes, commit all remaining changes
n - no, continue selection
+ d - discard, discard remaining changes
q - quit, abort the split
? - ?, display help
- Done splitting? [yNq?] q
+ Done splitting? [yNdq?] q
transaction abort!
rollback completed
abort: user quit
[255]
+
+discard some of changeset during split
+
+ $ cat >> $HGRCPATH <<EOF
+ > [experimental]
+ > evolution=all
+ > evolutioncommands=
+ > EOF
+
+ $ hg export
+ # HG changeset patch
+ # User test
+ # Date 0 0
+ # Thu Jan 01 00:00:00 1970 +0000
+ # Branch another-branch
+ # Node ID 56a59faa8af70dc104faa905231731ffece5f18a
+ # Parent 75695e3e2300d316cc515c4c25bab8b825ef1433
+ # EXP-Topic mytopic
+ split10
+
+ diff --git a/SPLIT2 b/SPLIT2
+ new file mode 100644
+ $ hg add SPLIT3
+ $ hg amend
+ 1 new orphan changesets
+ $ hg export
+ # HG changeset patch
+ # User test
+ # Date 0 0
+ # Thu Jan 01 00:00:00 1970 +0000
+ # Branch another-branch
+ # Node ID 3acb634dc68ddb4dea75a9cee982955bc1f3e8cd
+ # Parent 75695e3e2300d316cc515c4c25bab8b825ef1433
+ # EXP-Topic mytopic
+ split10
+
+ diff --git a/SPLIT2 b/SPLIT2
+ new file mode 100644
+ diff --git a/SPLIT3 b/SPLIT3
+ new file mode 100644
+ $ hg split << EOF
+ > Y
+ > d
+ > d
+ > EOF
+ 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
+ adding SPLIT2
+ adding SPLIT3
+ diff --git a/SPLIT2 b/SPLIT2
+ new file mode 100644
+ examine changes to 'SPLIT2'? [Ynesfdaq?] Y
+
+ diff --git a/SPLIT3 b/SPLIT3
+ new file mode 100644
+ examine changes to 'SPLIT3'? [Ynesfdaq?] d
+
+ Done splitting? [yNdq?] d
+ discarding remaining changes
+ forgetting SPLIT3
+ $ hg export
+ # HG changeset patch
+ # User test
+ # Date 0 0
+ # Thu Jan 01 00:00:00 1970 +0000
+ # Branch another-branch
+ # Node ID db690d5566962489d65945c90b468b44e0b1507a
+ # Parent 75695e3e2300d316cc515c4c25bab8b825ef1433
+ # EXP-Topic mytopic
+ split12
+
+ diff --git a/SPLIT2 b/SPLIT2
+ new file mode 100644
+ $ hg status
+ ? SPLIT3
+ ? SPLIT4
+ ? editor.sh
+ ? num