# HG changeset patch # User Yuya Nishihara # Date 2019-08-17 06:43:41 # Node ID 8c3bbf6f54a0a8b1e989fbb2e8e287b1db92ff28 # Parent 88d6a6f7e83716146fc725f20166509a520bc164 transplant: unnest --stop case It should be aligned with --continue. diff --git a/hgext/transplant.py b/hgext/transplant.py --- a/hgext/transplant.py +++ b/hgext/transplant.py @@ -692,11 +692,11 @@ def _dotransplant(ui, repo, *revs, **opt if opts.get('continue'): if not tp.canresume(): raise error.Abort(_('no transplant to continue')) + elif opts.get('stop'): + if not tp.canresume(): + raise error.Abort(_('no interrupted transplant found')) + return tp.stop(ui, repo) else: - if opts.get('stop'): - if not tp.canresume(): - raise error.Abort(_('no interrupted transplant found')) - return tp.stop(ui, repo) cmdutil.checkunfinished(repo) cmdutil.bailifchanged(repo)