{"action":"created","comment":{"url":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls/comments/31819938","id":31819938,"diff_hunk":"@@ -83,9 +83,16 @@ db_open(#httpdb{} = Db1, _Options, Create) ->\n                     ok\n                 end)\n         end,\n-        send_req(Db, [{method, head}],\n-            fun(200, _, _) ->\n-                {ok, Db};\n+        send_req(Db, [{method, get}],\n+            fun(200, _, {Props}) ->\n+                case get_value(<<\"update_seq\">>, Props) of","path":"src/couch_replicator_api_wrap.erl","position":null,"original_position":9,"commit_id":"7e72e97c4983aa80f0290d6390ae242e8f441526","original_commit_id":"367562b4120a4ff0ba1a01dfa96534cf8d02d881","user":{"login":"mikewallace1979","id":525585,"avatar_url":"https://avatars.githubusercontent.com/u/525585?v=3","gravatar_id":"","url":"https://api.github.com/users/mikewallace1979","html_url":"https://github.com/mikewallace1979","followers_url":"https://api.github.com/users/mikewallace1979/followers","following_url":"https://api.github.com/users/mikewallace1979/following{/other_user}","gists_url":"https://api.github.com/users/mikewallace1979/gists{/gist_id}","starred_url":"https://api.github.com/users/mikewallace1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikewallace1979/subscriptions","organizations_url":"https://api.github.com/users/mikewallace1979/orgs","repos_url":"https://api.github.com/users/mikewallace1979/repos","events_url":"https://api.github.com/users/mikewallace1979/events{/privacy}","received_events_url":"https://api.github.com/users/mikewallace1979/received_events","type":"User","site_admin":false},"body":"@kxepal seems like a sensible check - I added a commit to the PR","created_at":"2015-06-05T15:02:08Z","updated_at":"2015-06-05T15:02:08Z","html_url":"https://github.com/apache/couchdb-couch-replicator/pull/11#discussion_r31819938","pull_request_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls/comments/31819938"},"html":{"href":"https://github.com/apache/couchdb-couch-replicator/pull/11#discussion_r31819938"},"pull_request":{"href":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls/11","id":36753963,"html_url":"https://github.com/apache/couchdb-couch-replicator/pull/11","diff_url":"https://github.com/apache/couchdb-couch-replicator/pull/11.diff","patch_url":"https://github.com/apache/couchdb-couch-replicator/pull/11.patch","issue_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/issues/11","number":11,"state":"open","locked":false,"title":"2707 merge couch replicator fixes from cloudant fork","user":{"login":"mikewallace1979","id":525585,"avatar_url":"https://avatars.githubusercontent.com/u/525585?v=3","gravatar_id":"","url":"https://api.github.com/users/mikewallace1979","html_url":"https://github.com/mikewallace1979","followers_url":"https://api.github.com/users/mikewallace1979/followers","following_url":"https://api.github.com/users/mikewallace1979/following{/other_user}","gists_url":"https://api.github.com/users/mikewallace1979/gists{/gist_id}","starred_url":"https://api.github.com/users/mikewallace1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikewallace1979/subscriptions","organizations_url":"https://api.github.com/users/mikewallace1979/orgs","repos_url":"https://api.github.com/users/mikewallace1979/repos","events_url":"https://api.github.com/users/mikewallace1979/events{/privacy}","received_events_url":"https://api.github.com/users/mikewallace1979/received_events","type":"User","site_admin":false},"body":"This PR brings in a number of fixes for couch_replicator from the Cloudant fork at https://github.com/cloudant/couch_replicator\r\n\r\nCloses COUCHDB-2707.","created_at":"2015-06-02T17:33:47Z","updated_at":"2015-06-05T15:02:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"429b08b14ef633db9ee2359c1d6e7c0ce8610658","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls/11/commits","review_comments_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls/11/comments","review_comment_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/issues/11/comments","statuses_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/statuses/7e72e97c4983aa80f0290d6390ae242e8f441526","head":{"label":"apache:2707-merge-couch_replicator-fixes-from-cloudant-fork","ref":"2707-merge-couch_replicator-fixes-from-cloudant-fork","sha":"7e72e97c4983aa80f0290d6390ae242e8f441526","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":15993606,"name":"couchdb-couch-replicator","full_name":"apache/couchdb-couch-replicator","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/couchdb-couch-replicator","description":"Mirror of Apache CouchDB","fork":false,"url":"https://api.github.com/repos/apache/couchdb-couch-replicator","forks_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/forks","keys_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/teams","hooks_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/hooks","issue_events_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/issues/events{/number}","events_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/events","assignees_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/assignees{/user}","branches_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/branches{/branch}","tags_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/tags","blobs_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/languages","stargazers_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/stargazers","contributors_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/contributors","subscribers_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/subscribers","subscription_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/subscription","commits_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/contents/{+path}","compare_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/merges","archive_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/downloads","issues_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/issues{/number}","pulls_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/labels{/name}","releases_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/releases{/id}","created_at":"2014-01-17T08:00:08Z","updated_at":"2015-04-06T17:58:14Z","pushed_at":"2015-06-05T15:00:56Z","git_url":"git://github.com/apache/couchdb-couch-replicator.git","ssh_url":"git@github.com:apache/couchdb-couch-replicator.git","clone_url":"https://github.com/apache/couchdb-couch-replicator.git","svn_url":"https://github.com/apache/couchdb-couch-replicator","homepage":null,"size":824,"stargazers_count":5,"watchers_count":5,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":"git://git.apache.org/couchdb-couch-replicator.git","open_issues_count":4,"forks":7,"open_issues":4,"watchers":5,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"bbab85b9f9674a809b2ec1d044beffed20396eae","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":15993606,"name":"couchdb-couch-replicator","full_name":"apache/couchdb-couch-replicator","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/couchdb-couch-replicator","description":"Mirror of Apache CouchDB","fork":false,"url":"https://api.github.com/repos/apache/couchdb-couch-replicator","forks_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/forks","keys_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/teams","hooks_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/hooks","issue_events_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/issues/events{/number}","events_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/events","assignees_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/assignees{/user}","branches_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/branches{/branch}","tags_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/tags","blobs_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/languages","stargazers_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/stargazers","contributors_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/contributors","subscribers_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/subscribers","subscription_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/subscription","commits_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/contents/{+path}","compare_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/merges","archive_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/downloads","issues_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/issues{/number}","pulls_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/labels{/name}","releases_url":"https://api.github.com/repos/apache/couchdb-couch-replicator/releases{/id}","created_at":"2014-01-17T08:00:08Z","updated_at":"2015-04-06T17:58:14Z","pushed_at":"2015-06-05T15:00:56Z","git_url":"git://github.com/apache/couchdb-couch-replicator.git","ssh_url":"git@github.com:apache/couchdb-couch-replicator.git","clone_url":"https://github.com/apache/couchdb-couch-replicator.git","svn_url":"https://github.com/apache/couchdb-couch-replicator","homepage":null,"size":824,"stargazers_count":5,"watchers_count":5,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":"git://git.apache.org/couchdb-couch-replicator.git","open_issues_count":4,"forks":7,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls/11"},"html":{"href":"https://github.com/apache/couchdb-couch-replicator/pull/11"},"issue":{"href":"https://api.github.com/repos/apache/couchdb-couch-replicator/issues/11"},"comments":{"href":"https://api.github.com/repos/apache/couchdb-couch-replicator/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/couchdb-couch-replicator/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/apache/couchdb-couch-replicator/statuses/7e72e97c4983aa80f0290d6390ae242e8f441526"}}}}