Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A796971ED for ; Wed, 9 Nov 2011 10:52:17 +0000 (UTC) Received: (qmail 66331 invoked by uid 500); 9 Nov 2011 10:52:17 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 66298 invoked by uid 500); 9 Nov 2011 10:52:17 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 66288 invoked by uid 99); 9 Nov 2011 10:52:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 10:52:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fdmanana@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 10:52:10 +0000 Received: by yenr11 with SMTP id r11so764724yen.11 for ; Wed, 09 Nov 2011 02:51:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ShLPiHVkmnH00JSD1p/2DMZhmXrJjrnNz2t3AO07+u0=; b=HDftDtsU+aKKP+9H0hEGLGRzcVBhR1ybMi08uofLb3hD6oC4iLunnsyTKI4qbvCfdy CpOv63eA9kUJDeL+PlVhbOQS2fxuB1AhwMomJzuYjwD+KRS8+wBn8l8+tcgyR33/oZyt pCu+3ljuvyE+BxEXP4cvaWgV3B4bASoFbWDCg= MIME-Version: 1.0 Received: by 10.68.29.101 with SMTP id j5mr4330258pbh.61.1320835909533; Wed, 09 Nov 2011 02:51:49 -0800 (PST) Sender: fdmanana@gmail.com Received: by 10.142.222.6 with HTTP; Wed, 9 Nov 2011 02:51:49 -0800 (PST) In-Reply-To: <20111109100720.E3811542C2@tyr.zones.apache.org> References: <20111109100720.E3811542C2@tyr.zones.apache.org> Date: Wed, 9 Nov 2011 10:51:49 +0000 X-Google-Sender-Auth: sw3rEbdaN1hkTmPEM6yp488jXzY Message-ID: Subject: Re: [5/5] git commit: fix improper comparison on filtered changes From: Filipe David Manana To: dev@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Randall, which test exactly was failing in changes.js? I've never had such failure locally. If it's due to browser caching, it would be a good idea to add a test to test/etap/073-changes.t On Wed, Nov 9, 2011 at 10:07 AM, wrote: > fix improper comparison on filtered changes > > Regression caught by the changes js test. > > > Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo > Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/6213d064 > Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/6213d064 > Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/6213d064 > > Branch: refs/heads/master > Commit: 6213d064ef2467be9e6673df0fa71ffa9821ba4a > Parents: 866769f > Author: Randall Leeds > Authored: Wed Nov 9 01:16:36 2011 -0800 > Committer: Randall Leeds > Committed: Wed Nov 9 01:40:56 2011 -0800 > > ---------------------------------------------------------------------- > =C2=A0src/couchdb/couch_changes.erl | =C2=A0 =C2=A02 +- > =C2=A01 files changed, 1 insertions(+), 1 deletions(-) > ---------------------------------------------------------------------- > > > http://git-wip-us.apache.org/repos/asf/couchdb/blob/6213d064/src/couchdb/= couch_changes.erl > ---------------------------------------------------------------------- > diff --git a/src/couchdb/couch_changes.erl b/src/couchdb/couch_changes.er= l > index ab95481..267f3d7 100644 > --- a/src/couchdb/couch_changes.erl > +++ b/src/couchdb/couch_changes.erl > @@ -328,7 +328,7 @@ send_lookup_changes(FullDocInfos, StartSeq, Dir, Db, = Fun, Acc0) -> > =C2=A0 =C2=A0 end, > =C2=A0 =C2=A0 GreaterFun =3D case Dir of > =C2=A0 =C2=A0 fwd -> > - =C2=A0 =C2=A0 =C2=A0 =C2=A0fun(A, B) -> A >=3D B end; > + =C2=A0 =C2=A0 =C2=A0 =C2=A0fun(A, B) -> A > B end; > =C2=A0 =C2=A0 rev -> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 fun(A, B) -> A =3D< B end > =C2=A0 =C2=A0 end, > > --=20 Filipe David Manana, "Reasonable men adapt themselves to the world. =C2=A0Unreasonable men adapt the world to themselves. =C2=A0That's why all progress depends on unreasonable men."