# HG changeset patch # User Anton Shestakov # Date 1668952033 -14400 # Node ID 58ba40d1f2c728d979c38df83736fa969e51e142 # Parent 9c243e98d0be83f95345042eba73224ed2a724fb evolve: raise StateError when trying to prev/next from uncommitted merge diff -r 9c243e98d0be -r 58ba40d1f2c7 hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Sun Nov 20 17:29:14 2022 +0400 +++ b/hgext3rd/evolve/__init__.py Sun Nov 20 17:47:13 2022 +0400 @@ -783,7 +783,7 @@ wkctx = repo[None] wparents = wkctx.parents() if len(wparents) != 1: - raise error.Abort(_(b'merge in progress')) + raise compat.StateError(_(b'merge in progress')) if not mergeopt: # we only skip the check if noconflict is set if ui.config(b'commands', b'update.check') == b'noconflict': @@ -868,7 +868,7 @@ wkctx = repo[None] wparents = wkctx.parents() if len(wparents) != 1: - raise error.Abort(_(b'merge in progress')) + raise compat.StateError(_(b'merge in progress')) children = [ctx for ctx in wparents[0].children() if not ctx.obsolete()] topic = _getcurrenttopic(repo)