Submitter | David Soria Parra |
---|---|
Date | Dec. 14, 2016, 8:09 p.m. |
Message ID | <c6c26e238617600d0523.1481746167@devbig415.prn1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/17918/ |
State | Accepted |
Headers | show
Return-Path: <mercurial-devel-bounces@mercurial-scm.org> X-Original-To: patchwork@mercurial-scm.org Delivered-To: patchwork@mercurial-scm.org Received: from localhost (localhost [127.0.0.1]) by mercurial-scm.org (Postfix) with ESMTP id 9766D2C1A8; Wed, 14 Dec 2016 15:09:38 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at mercurial-scm.org Received: from mercurial-scm.org ([127.0.0.1]) by localhost (mercurial-scm.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id F3sUcSI0jUtL; Wed, 14 Dec 2016 15:09:38 -0500 (EST) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id B0E962C18F; Wed, 14 Dec 2016 15:09:31 -0500 (EST) X-Original-To: mercurial-devel@mercurial-scm.org Delivered-To: mercurial-devel@mercurial-scm.org Received: from localhost (localhost [127.0.0.1]) by mercurial-scm.org (Postfix) with ESMTP id EAC872C17C for <mercurial-devel@mercurial-scm.org>; Wed, 14 Dec 2016 15:09:28 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at mercurial-scm.org Received: from mercurial-scm.org ([127.0.0.1]) by localhost (mercurial-scm.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 348APKy7dDMe for <mercurial-devel@mercurial-scm.org>; Wed, 14 Dec 2016 15:09:28 -0500 (EST) Received: from mx0a-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) by mercurial-scm.org (Postfix) with ESMTPS id 80A642C173 for <mercurial-devel@mercurial-scm.org>; Wed, 14 Dec 2016 15:09:28 -0500 (EST) Received: from pps.filterd (m0001255.ppops.net [127.0.0.1]) by mx0b-00082601.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uBEK6I9q019514 for <mercurial-devel@mercurial-scm.org>; Wed, 14 Dec 2016 12:09:27 -0800 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=qiBo7teerQ0EaVUD/Cj5sVYZHS8vIRnjBxmX6gCi7yI=; b=SaYGjOlWT63F80+CzO7vtZUTzu5W4MW6oL/JZ5/H9/Jc48i3gBeTxF2+x35aQyHNNB+x SL/+MhBDFvYRFTmWr5NRtzZuLCsnve3/6A4Pbyqd+OnwztEjYJ7K5wyVAsV9INKHtjGD cka6NRFRpkpQaOYnL4eRhD9wU9XpeSl2QiQ= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0b-00082601.pphosted.com with ESMTP id 27ba8ssvb5-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for <mercurial-devel@mercurial-scm.org>; Wed, 14 Dec 2016 12:09:27 -0800 Received: from mx-out.facebook.com (192.168.52.123) by PRN-CHUB10.TheFacebook.com (192.168.16.20) with Microsoft SMTP Server (TLS) id 14.3.294.0; Wed, 14 Dec 2016 12:09:26 -0800 Received: from devbig415.prn1.facebook.com (2401:db00:11:d0af:face:0:4f:0) by mx-out.facebook.com (10.212.236.87) with ESMTP id 364fd6c4c23911e68f430002c9521c9e-8abefa50 for <mercurial-devel@mercurial-scm.org>; Wed, 14 Dec 2016 12:09:26 -0800 MIME-Version: 1.0 Subject: [PATCH 6 of 8 v5] convert: do not provide head revisions if we have no changests to import X-Mercurial-Node: c6c26e238617600d0523b44a9043d17f963f9eda X-Mercurial-Series-Index: 6 X-Mercurial-Series-Total: 8 Message-ID: <c6c26e238617600d0523.1481746167@devbig415.prn1.facebook.com> X-Mercurial-Series-Id: <506cb0034ebdbe85d2a7.1481746162@devbig415.prn1.facebook.com> In-Reply-To: <506cb0034ebdbe85d2a7.1481746162@devbig415.prn1.facebook.com> References: <506cb0034ebdbe85d2a7.1481746162@devbig415.prn1.facebook.com> User-Agent: Mercurial-patchbomb/4.0.1+303-81d945942b97 Date: Wed, 14 Dec 2016 12:09:27 -0800 From: David Soria Parra <davidsp@fb.com> To: <mercurial-devel@mercurial-scm.org> X-FB-Internal: Safe X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-12-14_13:, , signatures=0 X-BeenThere: mercurial-devel@mercurial-scm.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <mercurial-devel.mercurial-scm.org> List-Unsubscribe: <https://www.mercurial-scm.org/mailman/options/mercurial-devel>, <mailto:mercurial-devel-request@mercurial-scm.org?subject=unsubscribe> List-Archive: <http://www.mercurial-scm.org/pipermail/mercurial-devel/> List-Post: <mailto:mercurial-devel@mercurial-scm.org> List-Help: <mailto:mercurial-devel-request@mercurial-scm.org?subject=help> List-Subscribe: <https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel>, <mailto:mercurial-devel-request@mercurial-scm.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: mercurial-devel-bounces@mercurial-scm.org Sender: "Mercurial-devel" <mercurial-devel-bounces@mercurial-scm.org> |
Comments
David Soria Parra - Dec. 14, 2016, 8:09 p.m.
Patch
diff --git a/hgext/convert/p4.py b/hgext/convert/p4.py --- a/hgext/convert/p4.py +++ b/hgext/convert/p4.py @@ -228,7 +228,7 @@ self.copies[change] = copies lastid = change - if lastid: + if lastid and len(self.changeset) > 0: self.heads = [lastid] def getheads(self):