Patchwork [5,of,9] commands: 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 <0c6f0b5fb28f7d09e74f.1405466127@dev1738.prn1.facebook.com>
Download mbox | patch
Permalink /patch/5179/
State Accepted
Commit 760f4055e65607fa25954d118d9101f5c45e9f91
Headers show

Comments

Siddharth Agarwal - July 15, 2014, 11:15 p.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1405461142 25200
#      Tue Jul 15 14:52:22 2014 -0700
# Node ID 0c6f0b5fb28f7d09e74f534c7493978f8f76b17a
# Parent  77c9787ec0c3e41fe96c7e63d70187d6558f60dd
commands: use util.re.compile instead of util.compilere

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3303,7 +3303,7 @@ 
     if opts.get('ignore_case'):
         reflags |= re.I
     try:
-        regexp = util.compilere(pattern, reflags)
+        regexp = util.re.compile(pattern, reflags)
     except re.error, inst:
         ui.warn(_("grep: invalid match pattern: %s\n") % inst)
         return 1