amend: lift the --interactive constraint on `--extract`
The uncommit logic now supports interactive selection.
--- a/hgext3rd/evolve/cmdrewrite.py Mon Sep 18 04:31:59 2017 +0200
+++ b/hgext3rd/evolve/cmdrewrite.py Tue Sep 19 12:52:22 2017 +0200
@@ -100,9 +100,6 @@
"""
opts = opts.copy()
if opts.get('extract'):
- if opts.pop('interactive', False):
- msg = _('not support for --interactive with --extract yet')
- raise error.Abort(msg)
return uncommit(ui, repo, *pats, **opts)
else:
if opts.pop('all', False):
--- a/tests/test-uncommit-interactive.t Mon Sep 18 04:31:59 2017 +0200
+++ b/tests/test-uncommit-interactive.t Tue Sep 19 12:52:22 2017 +0200
@@ -128,7 +128,7 @@
Uncommit a chunk
================
- $ hg uncommit -i<<EOF
+ $ hg amend --extract -i<<EOF
> y
> y
> n