Submitter | Christian Delahousse |
---|---|
Date | Oct. 9, 2015, 6:11 p.m. |
Message ID | <95c5584b9a2f7aa755eb.1444414292@dev4253.prn1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/10917/ |
State | Accepted |
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 7F97F3BBCC for <patchwork@patchwork.serpentine.com>; Fri, 9 Oct 2015 14:15:08 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by waste.org (Postfix) with ESMTP id 7DFF2740CD; Fri, 9 Oct 2015 13:15:03 -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 dfZjeCNCHhDL; Fri, 9 Oct 2015 13:15:03 -0500 (CDT) Received: from waste.org (localhost [127.0.0.1]) by waste.org (Postfix) with ESMTP id 2E790740CE; Fri, 9 Oct 2015 13:14:28 -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 7C557740CD for <mercurial-devel@waste.org>; Fri, 9 Oct 2015 13:14:25 -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 lO0-XMcXk-8T for <mercurial-devel@waste.org>; Fri, 9 Oct 2015 13:14:24 -0500 (CDT) Received: from mx0b-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) by waste.org (Postfix) with ESMTPS id D68BA740CA for <mercurial-devel@selenic.com>; Fri, 9 Oct 2015 13:14:23 -0500 (CDT) Received: from pps.filterd (m0041696 [127.0.0.1]) by m0041696.ppops.net (8.14.5/8.14.5) with SMTP id t99ICmNY007484 for <mercurial-devel@selenic.com>; Fri, 9 Oct 2015 11:14:22 -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 : date : from : to : cc; s=facebook; bh=mUKbuSJce/GNZGZ3I/k4kKYuPP6wlxEG70VSfRuhVtA=; b=eh2t7Q8Ct8OVCzSc3iE0hj2A3TU9FBhEIjlA1xMQVew5EmQX7MFRkZhOwEXVL54r2EEj seqVHckjuUMG56yOoPl4o+XLCb8w/JcMUAiesQLXoaR/YqNrhlK8N+xlOOpgzrW2GsHR Bz+56TV5QDEjIGkUaFwnHySbh7PBMImV1CA= Received: from mail.thefacebook.com ([199.201.64.23]) by m0041696.ppops.net with ESMTP id 1xejf3g1vk-14 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for <mercurial-devel@selenic.com>; Fri, 09 Oct 2015 11:14:22 -0700 Received: from mx-out.facebook.com (192.168.52.123) by PRN-CHUB11.TheFacebook.com (192.168.16.21) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 9 Oct 2015 11:11:34 -0700 Received: from dev4253.prn1.facebook.com (2401:db00:11:d0cd:face:0:23:0) by mx-out.facebook.com (10.223.100.97) with ESMTP id 2c7fe06c6eb111e5be3124be0593f280-781fd240 for <mercurial-devel@selenic.com>; Fri, 09 Oct 2015 11:11:34 -0700 MIME-Version: 1.0 Subject: [PATCH 1 of 3 V2] histedit: add inprogress method to state class X-Mercurial-Node: 95c5584b9a2f7aa755ebb196d1c2edbb04d281ae X-Mercurial-Series-Index: 1 X-Mercurial-Series-Total: 3 Message-ID: <95c5584b9a2f7aa755eb.1444414292@dev4253.prn1.facebook.com> X-Mercurial-Series-Id: <95c5584b9a2f7aa755eb.1444414292@dev4253.prn1.facebook.com> User-Agent: Mercurial-patchbomb/3.5.1+445-46c62473df5c Date: Fri, 9 Oct 2015 11:11:32 -0700 From: Christian Delahousse <cdelahousse@fb.com> To: <mercurial-devel@selenic.com> X-FB-Internal: Safe X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151, 1.0.33, 0.0.0000 definitions=2015-10-09_13:2015-10-09, 2015-10-09, 1970-01-01 signatures=0 Cc: cdelahousse@fb.com X-BeenThere: mercurial-devel@selenic.com X-Mailman-Version: 2.1.18 Precedence: list List-Id: <mercurial-devel.selenic.com> List-Unsubscribe: <https://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: <https://selenic.com/mailman/listinfo/mercurial-devel>, <mailto:mercurial-devel-request@selenic.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: mercurial-devel-bounces@selenic.com Sender: "Mercurial-devel" <mercurial-devel-bounces@selenic.com> |
Comments
Christian Delahousse - Oct. 9, 2015, 6:11 p.m.
Patch
diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -312,6 +312,9 @@ def clear(self): self.repo.vfs.unlink('histedit-state') + def inprogress(self): + return self.repo.vfs.exists('histedit-state') + class histeditaction(object): def __init__(self, state, node): self.state = state