couchbaselabs/CouchCocoa — pull request #14 by dlvenable (2012-02-11 19:49:31+00:00)
Title: Ability to replace existing replication requests

The existing replicationFromDatabaseAtURL method on CouchDatabase returns an existing pull if one exists. Because the CouchPersistentReplication makes up to 10 delete attempts, our client was not able to call wait on the deleteDocument RESTOperation. It would only wait on the first delete. This solution is to cause the server to start the delete and also return a new pull request.