[PATCH 3 of 9] match: use util.re.compile instead of util.compilere
Siddharth Agarwal
sid0 at fb.com
Tue Jul 15 23:15:25 UTC 2014
# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1405460985 25200
# Tue Jul 15 14:49:45 2014 -0700
# Node ID 3acefc9f215f34f9a7684da38b7452afe0781d2d
# Parent 57ab201374d8a0c5b0483260486d3e331247dfe9
match: use util.re.compile instead of util.compilere
diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -12,7 +12,7 @@
def _rematcher(regex):
'''compile the regexp with the best available regexp engine and return a
matcher function'''
- m = util.compilere(regex)
+ m = util.re.compile(regex)
try:
# slightly faster, provided by facebook's re2 bindings
return m.test_match
More information about the Mercurial-devel
mailing list