couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: [jira] [Commented] (COUCHDB-1485) COPY behavior changed between 1.1.1 to 1.2
Date Tue, 30 Oct 2012 18:26:21 GMT
On Tue, Oct 30, 2012 at 7:13 PM, Robert Newson <rnewson@apache.org> wrote:
> #!/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"}
>

odd. I never paid attention. Though I wouldn't care about it... It is
somehow unexpected (how could revisions be the same since the docids
changed)

Mime
View raw message