Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5FEC7DCB3 for ; Tue, 18 Dec 2012 19:03:29 +0000 (UTC) Received: (qmail 49910 invoked by uid 500); 18 Dec 2012 19:03:27 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 49675 invoked by uid 500); 18 Dec 2012 19:03:24 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 49623 invoked by uid 99); 18 Dec 2012 19:03:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 19:03:23 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ciprian.craciun@gmail.com designates 74.125.83.42 as permitted sender) Received: from [74.125.83.42] (HELO mail-ee0-f42.google.com) (74.125.83.42) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 19:03:16 +0000 Received: by mail-ee0-f42.google.com with SMTP id c41so546131eek.1 for ; Tue, 18 Dec 2012 11:02:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=sx+aE7JgPHF6ByyJSDCsHQoGp/PPc+NeF5z6lTqRh98=; b=Ug6tkV8Jts1QkSAYGqQ24fOjqR3JfBoB3Mnu7P7D8dXZvdSpQqS6dVpEqr529Wcy7W MyGNPLozH3NXIDZlKD42pwpnm4ADDRVKp4W7bSfCj7/saNPmfEQm+0VLRi8xZIe7G/90 5iv4pctuFjZI8UQH4ylGKbBss8N8Rth4SL03MDQvozlPBdSesHKeQY1d3zWaQ34AP7qA IvyJHs3mwjyJNDx2qpWBmWZSgAhafm13fPAVqnnvhKFYvU+diPgn8h/rqdfgWknH9D8h VGh9C9J1jSwZQiz8Hm1LkLeOce+9WtAGDVhjiHnjwvlxcCtC2vaSg2eebj+/32h8Wy1D aw1Q== MIME-Version: 1.0 Received: by 10.14.176.66 with SMTP id a42mr7925566eem.34.1355857375544; Tue, 18 Dec 2012 11:02:55 -0800 (PST) Received: by 10.14.129.202 with HTTP; Tue, 18 Dec 2012 11:02:55 -0800 (PST) Date: Tue, 18 Dec 2012 21:02:55 +0200 Message-ID: Subject: How to find the change sequence of a document's revision From: Ciprian Dorin Craciun To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hello all! As noted in the subject I want to accomplish the following: having a particular document's revision I want to find out which is it's change sequence number. According to the documentation all I have to do is issue the following query to get the sequence number of the "latest" revision: http://.../database/document?revs_info=true&local_seq=true As such I've assumed that I can obtain that similarly even for previous revisions like this: http://.../database/document?rev=2-c33bbeaf4151d68d81f7e27f9cb0c03e&local_seq=true Unfortunately it doesn't work (as in it doesn't include any `_local_seq` attribute)... Any suggestions? (I know that I could find that information by scrolling through the `_changes` feed but that would be quite inefficient.) Thanks, Ciprian.