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 54270DB14 for ; Tue, 30 Oct 2012 18:13:54 +0000 (UTC) Received: (qmail 55955 invoked by uid 500); 30 Oct 2012 18:13:53 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 55907 invoked by uid 500); 30 Oct 2012 18:13:53 -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 55896 invoked by uid 99); 30 Oct 2012 18:13:53 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 18:13:53 +0000 Received: from localhost (HELO mail-vb0-f52.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 18:13:53 +0000 Received: by mail-vb0-f52.google.com with SMTP id k17so571996vbj.11 for ; Tue, 30 Oct 2012 11:13:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.31.99 with SMTP id z3mr45262016vdh.44.1351620832239; Tue, 30 Oct 2012 11:13:52 -0700 (PDT) Received: by 10.52.69.79 with HTTP; Tue, 30 Oct 2012 11:13:52 -0700 (PDT) In-Reply-To: References: <1681914338.7142.1338134663270.JavaMail.jiratomcat@issues-vm> <1962038954.40476.1351540332181.JavaMail.jiratomcat@arcas> Date: Tue, 30 Oct 2012 18:13:52 +0000 Message-ID: Subject: Re: [jira] [Commented] (COUCHDB-1485) COPY behavior changed between 1.1.1 to 1.2 From: Robert Newson To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 #!/bin/sh URL="localhost:5984/db1" curl "localhost:5984" curl $URL -XDELETE curl $URL -XPUT curl $URL/doc1 -XPUT -d '{}' curl $URL/doc1 -HDestination:doc2 -XCOPY {"couchdb":"Welcome","version":"1.1.1"} {"error":"not_found","reason":"missing"} {"ok":true} {"ok":true,"id":"doc1","rev":"1-967a00dff5e02add41819138abb3284d"} {"id":"doc2","rev":"1-967a00dff5e02add41819138abb3284d"} vs {"couchdb":"Welcome","version":"1.2.0"} {"ok":true} {"ok":true} {"ok":true,"id":"doc1","rev":"1-967a00dff5e02add41819138abb3284d"} {"ok":true,"id":"doc2","rev":"1-6aaf7080aad9d1a9482e07c46581dac0"} On 30 October 2012 17:47, Benoit Chesneau wrote: > On Mon, Oct 29, 2012 at 8:52 PM, Randall Leeds (JIRA) wrote: > > >> >> Whatever the case, it's always been that COPY returns the new revision in the response. I don't know if it was every guaranteed that the revision id would stay the same after a COPY. > > I'm pretty sure the revision in the new doc resulting from the copy > has always been different from the source.