diff hgext3rd/topic/flow.py @ 6322:57f9cdbf6a99

topic: use compat.CanceledError for user quit situations
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 10 Oct 2022 20:03:20 +0400
parents fe25ec8f0124
children 995c6163e97b 0592ae24c470
line wrap: on
line diff
--- a/hgext3rd/topic/flow.py	Mon Oct 10 20:02:14 2022 +0400
+++ b/hgext3rd/topic/flow.py	Mon Oct 10 20:03:20 2022 +0400
@@ -169,7 +169,7 @@
                 _(b'push and publish %i changesets (yn)?$$ &Yes $$ &No')
                 % len(published)
             ):
-                raise error.Abort(_(b'user quit'))
+                raise compat.CanceledError(_(b'user quit'))
         elif behavior == b'abort':
             msg = _(b'push would publish %i changesets') % len(published)
             hint = _(