diff --git a/src/CouchDatabase.cs b/src/CouchDatabase.cs index 63b7f74..0492dc3 100644 --- a/src/CouchDatabase.cs +++ b/src/CouchDatabase.cs @@ -798,6 +798,19 @@ public bool HasDocumentChanged(string documentId, string rev) return Request(documentId).Head().Send().Etag() != rev; } + public bool HasDocument(string documentId, string revision) + { + try + { + Request(documentId).QueryOptions(new Dictionary {{"Rev", revision}}).Head().Send(); + return true; + } + catch (WebException) + { + return false; + } + } + public bool HasDocument(string documentId) { try