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 729AC611C for ; Tue, 12 Jul 2011 23:34:31 +0000 (UTC) Received: (qmail 31105 invoked by uid 500); 12 Jul 2011 23:34:29 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 31076 invoked by uid 500); 12 Jul 2011 23:34:28 -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 31068 invoked by uid 99); 12 Jul 2011 23:34:28 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 23:34:28 +0000 Received: from localhost (HELO mail-iy0-f180.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 23:34:28 +0000 Received: by iyh42 with SMTP id 42so9681702iyh.11 for ; Tue, 12 Jul 2011 16:34:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.180.156 with SMTP id bu28mr386465ibb.134.1310513667803; Tue, 12 Jul 2011 16:34:27 -0700 (PDT) Received: by 10.231.145.67 with HTTP; Tue, 12 Jul 2011 16:34:27 -0700 (PDT) In-Reply-To: <92E0C47B-2734-43B9-93CE-52B75A2C7C67@couchbase.com> References: <1D83CDC2-5CD1-44D0-AC2B-5FE7D0614AF8@mooseyard.com> <92E0C47B-2734-43B9-93CE-52B75A2C7C67@couchbase.com> Date: Wed, 13 Jul 2011 00:34:27 +0100 Message-ID: Subject: Re: Is it OK to interpret the generation count in a revision ID? From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable The wiki does mention it (though I'll point out politely that the couchbase docs, while lovely, are not official atm). The rev values should be treated opaquely, we don't promise not to change the format. The contents of the conflicts is what you are supposed to use to resolve them, just as you do in source code (you don't use the revision id directly in SVN, right?). B. On 13 July 2011 00:11, Jens Alfke wrote: > > On Jul 12, 2011, at 2:54 PM, Paul Davis wrote: > > In this particular case, I'm not sure if we even document that the > revs=3Dtrue option exists, as I can't think of where it would be used > outside the replicator so even the format of this response might be > subject to change. > > No, it=92s well documented both in the CouchDB wiki and in Couchbase=92s = API docs: > > http://wiki.apache.org/couchdb/HTTP_Document_API#GET > http://www.couchbase.org/sites/default/files/uploads/all/documentation/co= uchbase-api-dbdoc.html#couchbase-api-dbdoc_db-doc_get-revs > > So is the =91extended revision history=92, ?revs_info=3Dtrue. > > Not sure why the revision history would be viewed as internal, as it=92s = pretty important for conflict resolution. > > =97Jens >