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
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 ACA603BBDD for <patchwork@patchwork.serpentine.com>; Tue, 15 Jul 2014 19:16:27 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by waste.org (Postfix) with ESMTP id 4027674388; Tue, 15 Jul 2014 18:16:27 -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 C0-Vt02ynJSp; Tue, 15 Jul 2014 18:16:27 -0500 (CDT) Received: from waste.org (localhost [127.0.0.1]) by waste.org (Postfix) with ESMTP id 3EACC74399; Tue, 15 Jul 2014 18:15:51 -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 5DE6574388 for <mercurial-devel@waste.org>; Tue, 15 Jul 2014 18:15:45 -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 b9CLWxlT9ocU for <mercurial-devel@waste.org>; Tue, 15 Jul 2014 18:15:43 -0500 (CDT) Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) by waste.org (Postfix) with ESMTP id 91F9774374 for <mercurial-devel@selenic.com>; Tue, 15 Jul 2014 18:15:33 -0500 (CDT) Received: from pps.filterd (m0044010 [127.0.0.1]) by mx0a-00082601.pphosted.com (8.14.5/8.14.5) with SMTP id s6FNDmwM032687 for <mercurial-devel@selenic.com>; Tue, 15 Jul 2014 16:15:32 -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=aMzb3Uy5uYwnCiniox/+jKVrMfQpcggdgbWbrYZ75j0=; b=dpX4Imj1FUgW78OnL54VaSG9AFdnS3O4hNQCKwTECI15QRhTBe8HA6MfYHbvy9h+xOiK FnGB+Xi8JKzTKxaj3w+FsdtEfmnYg79kAdRMHIoRU/lExCLrlzqCIoXuU68WI2kSHlG+ ESyGFxeLaH79Rd95lxvCiDuf15Mck1Xzd3A= Received: from mail.thefacebook.com (mailwest.thefacebook.com [173.252.71.148]) by mx0a-00082601.pphosted.com with ESMTP id 1n4p8cw0yt-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-CHUB08.TheFacebook.com (192.168.16.18) 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 e9a0bfe40c7511e4b9d90002c9521c9e-1b3f4400 for <mercurial-devel@selenic.com>; Tue, 15 Jul 2014 16:15:29 -0700 MIME-Version: 1.0 Subject: [PATCH 5 of 9] commands: use util.re.compile instead of util.compilere X-Mercurial-Node: 0c6f0b5fb28f7d09e74f534c7493978f8f76b17a X-Mercurial-Series-Index: 5 X-Mercurial-Series-Total: 9 Message-ID: <0c6f0b5fb28f7d09e74f.1405466127@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:27 -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/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