Read about our upcoming Code of Conduct on this issue

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.
8 jobs for branch/default in 5 minutes and 37 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Test
passed checks-py2 #208767

00:02:09

passed checks-py3 #208768

00:01:57

passed doc #208773

00:00:48

manual pytype #208766
allowed to fail manual
passed tests-py2-cext #208769

00:05:02

passed tests-py2-pure #208770

00:05:02

passed tests-py3-cext #208771

00:05:37

passed tests-py3-pure #208772

00:05:00