Patchwork [3,of,9] match: use util.re.compile instead of util.compilere

login
register
mail settings
Submitter Siddharth Agarwal
Date July 15, 2014, 11:15 p.m.
Message ID <3acefc9f215f34f9a768.1405466125@dev1738.prn1.facebook.com>
Download mbox | patch
Permalink /patch/5172/
State Accepted
Commit 335bb8b804430fe43375b844ba136cef9e84733d
Headers show

Comments

Siddharth Agarwal - July 15, 2014, 11:15 p.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@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

Patch

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