Submitter | Yuya Nishihara |
---|---|
Date | June 25, 2017, 3:26 a.m. |
Message ID | <cbf00411cd3e5c2db0cc.1498361170@mimosa> |
Download | mbox | patch |
Permalink | /patch/21682/ |
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 9F3E42C212; Sat, 24 Jun 2017 23:26:35 -0400 (EDT) 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 YfOePjsi5upq; Sat, 24 Jun 2017 23:26:35 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id 3B0992C1E7; Sat, 24 Jun 2017 23:26:35 -0400 (EDT) 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 AC4152C1E7 for <mercurial-devel@mercurial-scm.org>; Sat, 24 Jun 2017 23:26:33 -0400 (EDT) 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 A5CdlQ-i5RGn for <mercurial-devel@mercurial-scm.org>; Sat, 24 Jun 2017 23:26:31 -0400 (EDT) Received: from mail-pg0-x233.google.com (mail-pg0-x233.google.com [IPv6:2607:f8b0:400e:c05::233]) by mercurial-scm.org (Postfix) with ESMTPS id 2F53F2C1CC for <mercurial-devel@mercurial-scm.org>; Sat, 24 Jun 2017 23:26:30 -0400 (EDT) Received: by mail-pg0-x233.google.com with SMTP id f127so35341220pgc.0 for <mercurial-devel@mercurial-scm.org>; Sat, 24 Jun 2017 20:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:mime-version:content-transfer-encoding:subject:message-id :user-agent:date:from:to; bh=hNmxoF+6AD1c5krfIp4OhbmMBpP5qDGmsjaesVTvzNw=; b=ero1F9U0Ocnw1jOmZNwYqSMZtlk7R06TYMs3YITgKrF68EMaxPWEAwUvRzI3a4rhLd ZkZqMenYZ0P+Q0DsXMdZajlP9o87m4V4CzzyDME7mBGN8ObgnqWPbNIPomrJJk6jXVN/ xymccSl+jaSjNOyWsy3fxu38UxsRcVGUChVLR+bNr+OysLPwGvBfDaXPyz31MQ+HzjSA OC+h1FMARdqpDemztGClaXSQtih2dxft+C+J0vZLCM1780ebb+jJV96NarM7hDiuBV0F YAsKB8gcn0/rQok6RGcIwJ+RYYHhlrhcweGRd7Xp886sV34SfRpW60TYiY/iRgGIRDpf dL+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:mime-version:content-transfer-encoding :subject:message-id:user-agent:date:from:to; bh=hNmxoF+6AD1c5krfIp4OhbmMBpP5qDGmsjaesVTvzNw=; b=UjiYiCNkQO6l9zdyooqcvl/vmT9ZuLiQlanezDTdCx65Qkarv010ebcy9ta6wnR1xz mgreehnJ7omdQiw9f8fg3PrTsfXmvO4ivd/Gk4I3Zy91ZZLIc/0TlXssvYe4gA3pL/+k I0dXyDBNlVnalPmUiEDOiVseqlFy0eFbwKm6W8Xd4gSo7bCDHiewCwT4NJXRoIbTxmJC 4ivBJ/aW4DySWPhPYr57kumTABSAILIv1ino6EKLYu3j/m8r1g7SSCZlrxKOGe+7XL7x 6DVlmvNFaq3ey4UhxGqP5QVOMEkKCOqJsKDKNMOvLAOH9pzcQpfr11ftR9mevNKvQcuK p+ig== X-Gm-Message-State: AKS2vOz+mGuI0M6oL/zpoB7kvLDLCR2+du5dC/U37P5zxcbSHytZ20zz rYphDsCxfuYG590VZ/0= X-Received: by 10.99.107.66 with SMTP id g63mr15193285pgc.277.1498361189895; Sat, 24 Jun 2017 20:26:29 -0700 (PDT) Received: from [127.0.1.1] (p784a2ae9.tkyea126.ap.so-net.ne.jp. [120.74.42.233]) by smtp.gmail.com with ESMTPSA id r62sm103146pfb.39.2017.06.24.20.26.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Jun 2017 20:26:28 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 1 of 9] smartset: fix default value of abstractsmartset.sort() X-Mercurial-Node: cbf00411cd3e5c2db0ccdf73aaa35ea965c36648 X-Mercurial-Series-Index: 1 X-Mercurial-Series-Total: 9 Message-Id: <cbf00411cd3e5c2db0cc.1498361170@mimosa> X-Mercurial-Series-Id: <cbf00411cd3e5c2db0cc.1498361170@mimosa> User-Agent: Mercurial-patchbomb/4.2.1+887-8e3021fd1a44 Date: Sun, 25 Jun 2017 12:26:10 +0900 From: Yuya Nishihara <yuya@tcha.org> To: mercurial-devel@mercurial-scm.org 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
Yuya Nishihara - June 25, 2017, 3:26 a.m.
Patch
diff --git a/mercurial/smartset.py b/mercurial/smartset.py --- a/mercurial/smartset.py +++ b/mercurial/smartset.py @@ -117,7 +117,7 @@ class abstractsmartset(object): """reverse the expected iteration order""" raise NotImplementedError() - def sort(self, reverse=True): + def sort(self, reverse=False): """get the set to iterate in an ascending or descending order""" raise NotImplementedError()