To retrieve document of specific revision, you need to perform a
request against document resource with ?rev= query parameter contained
specific revision value
/db/docid?rev=1-abc

To retrieve all conflicts, use ?open_revs=all one:
/db/docid?open_revs=all

See also: 
http://docs.couchdb.org/en/latest/api/document/common.html#get--db-docid
--
,,,^..^,,,


On Tue, Dec 30, 2014 at 7:16 AM, jumbo jim <[email protected]> wrote:
> So, I have two identical documents on two separate servers -
>
> curl -X GET http://localhost:5984/DB/xxxxxxxxxxxxxx
>
> They both report the same -
>
> {"_id":"xxxxxxxxxxxxxx","_rev":"1-7394816385718141819138abb3284d"}
> {"_id":"xxxxxxxxxxxxxx","_rev":"1-7394816385718141819138abb3284d"}
>
> I then purposely update both documents independently, causing a different
> revision on each.
>
> {"_id":"xxxxxxxxxxxxxx","_rev":"2-9481748609089ec2762fca087123a7af"}
> {"_id":"xxxxxxxxxxxxxx","_rev":"2-838194718371483ea1131157e3012bdd"}
>
> I then perform a replication. As expected, couchdb decides on one -
>
> {"_id":"xxxxxxxxxxxxxx","_rev":"2-9481748609089ec2762fca087123a7af"}
> {"_id":"xxxxxxxxxxxxxx","_rev":"2-9481748609089ec2762fca087123a7af"}
>
> Futon on both servers only lists two revisions, with the second being
> 2-9481748609089ec2762fca087123a7af.
>
> The discarded revision 2-838194718371483ea1131157e3012bdd I can see when I
> view conflicts via a view. However, how can I view the discarded revision
> with the API and/or Futon?
>
> Using /DB/xxxxxxxxxxxxxx?2-838194718371483ea1131157e3012bdd does not work.
>
> Thanks.

Reply via email to