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
Return-Path: <mercurial-devel-bounces@selenic.com> X-Original-To: patchwork@patchwork.serpentine.com Delivered-To: patchwork@patchwork.serpentine.com Received: from waste.org (waste.org [173.11.57.241]) by bz.selenic.com (Postfix) with ESMTP id 6CD653BBDD for <patchwork@patchwork.serpentine.com>; Tue, 15 Jul 2014 19:15:52 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by waste.org (Postfix) with ESMTP id A1A137439A; Tue, 15 Jul 2014 18:15:51 -0500 (CDT) X-Virus-Scanned: Debian amavisd-new at waste.org Received: from waste.org ([127.0.0.1]) by localhost (waste.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EJnk3zZvt8Qt; Tue, 15 Jul 2014 18:15:51 -0500 (CDT) Received: from waste.org (localhost [127.0.0.1]) by waste.org (Postfix) with ESMTP id 3E7AC74376; Tue, 15 Jul 2014 18:15:40 -0500 (CDT) X-Original-To: mercurial-devel@waste.org Delivered-To: mercurial-devel@waste.org Received: from localhost (localhost [127.0.0.1]) by waste.org (Postfix) with ESMTP id E0D6174377 for <mercurial-devel@waste.org>; Tue, 15 Jul 2014 18:15:37 -0500 (CDT) X-Virus-Scanned: Debian amavisd-new at waste.org Received: from waste.org ([127.0.0.1]) by localhost (waste.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RtoWA4GBB1K1 for <mercurial-devel@waste.org>; Tue, 15 Jul 2014 18:15:34 -0500 (CDT) Received: from mx0b-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) by waste.org (Postfix) with ESMTP id A432C7435F for <mercurial-devel@selenic.com>; Tue, 15 Jul 2014 18:15:32 -0500 (CDT) Received: from pps.filterd (m0004060 [127.0.0.1]) by mx0b-00082601.pphosted.com (8.14.5/8.14.5) with SMTP id s6FNCMVF028026 for <mercurial-devel@selenic.com>; Tue, 15 Jul 2014 16:15:31 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=content-type : mime-version : content-transfer-encoding : subject : message-id : in-reply-to : references : date : from : to; s=facebook; bh=5tr97j9jWWjh3oNOTWFNsut/o8mNzKkDw6Lts1uwYXU=; b=joADCxxhoJyDypQ7rziFdFgTk0+B2QW/CHKRRSRBBb/ap6Ncg4WwjCWAqudDzd4IX7Kv sgbQnSMS1EnF0e+qeKdBGPUqLFlqJtpPLks9VYorvAcuBYAngclJ9DB8TxW1ZcGP3qO2 uR5uhWH4NMnWPVCektyalO0WPI171MNL5XI= Received: from mail.thefacebook.com (mailwest.thefacebook.com [173.252.71.148]) by mx0b-00082601.pphosted.com with ESMTP id 1n54pcht2m-2 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK) for <mercurial-devel@selenic.com>; Tue, 15 Jul 2014 16:15:31 -0700 Received: from mx-out.facebook.com (192.168.57.29) by PRN-CHUB06.TheFacebook.com (192.168.16.16) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 15 Jul 2014 16:15:29 -0700 Received: from dev1738.prn1.facebook.com (2401:db00:11:26:face:0:49:0) by mx-out.facebook.com (10.212.236.87) with ESMTP id e952b0ce0c7511e4b9d90002c9521c9e-1b3f4400 for <mercurial-devel@selenic.com>; Tue, 15 Jul 2014 16:15:29 -0700 MIME-Version: 1.0 Subject: [PATCH 3 of 9] match: use util.re.compile instead of util.compilere X-Mercurial-Node: 3acefc9f215f34f9a7684da38b7452afe0781d2d X-Mercurial-Series-Index: 3 X-Mercurial-Series-Total: 9 Message-ID: <3acefc9f215f34f9a768.1405466125@dev1738.prn1.facebook.com> In-Reply-To: <ed42268099cf2d549203.1405466123@dev1738.prn1.facebook.com> References: <ed42268099cf2d549203.1405466123@dev1738.prn1.facebook.com> User-Agent: Mercurial-patchbomb/3.0+303-9fb6f328576a Date: Tue, 15 Jul 2014 16:15:25 -0700 From: Siddharth Agarwal <sid0@fb.com> To: <mercurial-devel@selenic.com> X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.14, 0.0.0000 definitions=2014-07-15_07:2014-07-15, 2014-07-15, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 kscore.is_bulkscore=0 kscore.compositescore=1 circleOfTrustscore=749.064 compositescore=0.997009260339063 urlsuspect_oldscore=0.997009260339063 suspectscore=1 recipient_domain_to_sender_totalscore=8934 phishscore=0 bulkscore=0 kscore.is_spamscore=0 recipient_to_sender_totalscore=0 recipient_domain_to_sender_domain_totalscore=57897 rbsscore=0.997009260339063 spamscore=0 recipient_to_sender_domain_totalscore=0 urlsuspectscore=0.9 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407150256 X-FB-Internal: deliver X-BeenThere: mercurial-devel@selenic.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: <mercurial-devel.selenic.com> List-Unsubscribe: <http://selenic.com/mailman/options/mercurial-devel>, <mailto:mercurial-devel-request@selenic.com?subject=unsubscribe> List-Archive: <http://selenic.com/pipermail/mercurial-devel> List-Post: <mailto:mercurial-devel@selenic.com> List-Help: <mailto:mercurial-devel-request@selenic.com?subject=help> List-Subscribe: <http://selenic.com/mailman/listinfo/mercurial-devel>, <mailto:mercurial-devel-request@selenic.com?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: mercurial-devel-bounces@selenic.com Errors-To: mercurial-devel-bounces@selenic.com |
Comments
Siddharth Agarwal - July 15, 2014, 11:15 p.m.
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