--- a/hgext/absorb.py Fri Dec 14 21:00:33 2018 +0300
+++ b/hgext/absorb.py Thu Dec 13 20:39:25 2018 -0800
@@ -971,9 +971,10 @@
label='absorb.description')
fm.end()
if not opts.get('dry_run'):
- if not opts.get('apply_changes'):
- if ui.promptchoice("apply changes (yn)? $$ &Yes $$ &No", default=1):
- raise error.Abort(_('absorb cancelled\n'))
+ if (not opts.get('apply_changes') and
+ state.ctxaffected and
+ ui.promptchoice("apply changes (yn)? $$ &Yes $$ &No", default=1)):
+ raise error.Abort(_('absorb cancelled\n'))
state.apply()
if state.commit():