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 28BF68918 for ; Mon, 22 Aug 2011 08:49:17 +0000 (UTC) Received: (qmail 41123 invoked by uid 500); 22 Aug 2011 08:49:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 40846 invoked by uid 500); 22 Aug 2011 08:49:11 -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 40784 invoked by uid 99); 22 Aug 2011 08:49:10 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 08:49:10 +0000 Received: from localhost (HELO mail-iy0-f174.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 08:49:09 +0000 Received: by iyf40 with SMTP id 40so12021867iyf.5 for ; Mon, 22 Aug 2011 01:49:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.9.1 with SMTP id j1mr5263224ibj.19.1314002949403; Mon, 22 Aug 2011 01:49:09 -0700 (PDT) Received: by 10.231.155.129 with HTTP; Mon, 22 Aug 2011 01:49:09 -0700 (PDT) In-Reply-To: <48C58B7F-CF5E-4A3E-8C93-ED20DD3C68EE@couchbase.com> References: <48C58B7F-CF5E-4A3E-8C93-ED20DD3C68EE@couchbase.com> Date: Mon, 22 Aug 2011 09:49:09 +0100 Message-ID: Subject: Re: What's the best way to jack up the rev number? From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Ryan, As others have noted, you don't need to bump the 'number on the front' to 'force' updates. Just update the document and replicate. If the change isn't appearing on the target then the document has conflicting revisions and your new update was one of the losers. Delete the revisions *you* deem the losers, and it'll pop right up. I confess to not finding illumination in comparisons between CouchDB and Git, any analogy there tends to falls down at exactly the point where the differences are important. B. On 22 August 2011 06:24, Jens Alfke wrote: > > On Aug 21, 2011, at 10:04 PM, Ryan Ramage wrote: > > A summary from the link....I have a master couchapp that clients pull > replicate from. A refactoring of the couchapp may mess up the rev number = for > the main design doc. So i need a way to go past the rev number to force a= n > update to the clients. Is there a better way? > > The revision IDs aren=92t =93numbers=94 (again, just like Git). They do h= appen to have incrementing digits at the start, before the hashcode, but I= =92m told that=92s just a detail of the implementation and shouldn=92t be r= elied on. In the general case there isn=92t any way to put an ordering on r= evisions, since different peers can be creating them out of contact with ea= ch other and then merging, so the replication algorithm doesn=92t pay any a= ttention to those digits at the beginning. > > =97Jens >