diff tests/test-uncommit.t @ 5970:65d4e47d7f26

rewriteutil: use precheck from core if recent enough This commit makes the evolve extension's `rewriteutil.precheck()` simply delegate to the same function from Mercurial core, if that function is deemed recent enough. The way I made that check is by looking for `rewriteutil.find_new_divergence_from()`. That means that there's a range of commits (ba6881c6::8125bcd2^) where the user would see less detailed error messages if they are running with an hg version from that range (there are no released versions in that range). As you can see in the tests, switching to core's version of the function mostly affects error messages and exit codes.
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 04 May 2021 09:40:18 -0700
parents b68789e8c535
children 1a13ac9ef30a
line wrap: on
line diff
--- a/tests/test-uncommit.t	Sat Jun 19 22:33:38 2021 +0300
+++ b/tests/test-uncommit.t	Tue May 04 09:40:18 2021 -0700
@@ -17,7 +17,7 @@
   $ hg uncommit
   abort: cannot uncommit the null revision
   (no changeset checked out)
-  [255]
+  [10]
 
 Cannot uncommit public changeset
 
@@ -27,7 +27,7 @@
   $ hg uncommit
   abort: cannot uncommit public changesets: 07f494440405
   (see 'hg help phases' for details)
-  [255]
+  [10]
   $ hg phase --force --draft .
 
 Cannot uncommit merge