diff hgext/automv.py @ 38474:96f65bdf0bf4

stringutil: add a new function to do minimal regex escaping Per https://bugs.python.org/issue29995, re.escape() used to over-escape regular expression strings, but in Python 3.7 that's been fixed, which also improved the performance of re.escape(). Since it's both an output change for us *and* a perfomance win, let's just effectively backport the new behavior to hg on all Python versions. Differential Revision: https://phab.mercurial-scm.org/D3841
author Augie Fackler <augie@google.com>
date Tue, 26 Jun 2018 10:33:52 -0400
parents 38637dd39cfd
children f89aad980025
line wrap: on
line diff