{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/version-control-tools/pulls/comments/48167568","id":48167568,"diff_hunk":"@@ -92,6 +92,27 @@ def query_pushes_by_pushid_range(repo_url, start_id, end_id, version=2):\n     return push_list\n \n \n+def query_pushes_by_specified_revision_range(repo_url, revision, before, after):\n+    \"\"\"\n+    Get the start and end revisions' pushlog based on the number of revisions before and after.\n+    Raises PushlogError if pushlog data cannot be retrieved.\n+    repo_url - represents the URL to clone a rep\n+    revision - the revision been used to set the query range\n+    before   - the number before the revision been given","path":"pylib/mozhginfo/mozhginfo/pushlog_client.py","position":10,"original_position":10,"commit_id":"c46cb4b52ecc73cf209cb5b6108e86dc6d24fdb6","original_commit_id":"c46cb4b52ecc73cf209cb5b6108e86dc6d24fdb6","user":{"login":"armenzg","id":44410,"avatar_url":"https://avatars.githubusercontent.com/u/44410?v=3","gravatar_id":"","url":"https://api.github.com/users/armenzg","html_url":"https://github.com/armenzg","followers_url":"https://api.github.com/users/armenzg/followers","following_url":"https://api.github.com/users/armenzg/following{/other_user}","gists_url":"https://api.github.com/users/armenzg/gists{/gist_id}","starred_url":"https://api.github.com/users/armenzg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armenzg/subscriptions","organizations_url":"https://api.github.com/users/armenzg/orgs","repos_url":"https://api.github.com/users/armenzg/repos","events_url":"https://api.github.com/users/armenzg/events{/privacy}","received_events_url":"https://api.github.com/users/armenzg/received_events","type":"User","site_admin":false},"body":"s/been// (remove the word \"been\")","created_at":"2015-12-21T17:16:20Z","updated_at":"2015-12-21T17:16:20Z","html_url":"https://github.com/mozilla/version-control-tools/pull/3#discussion_r48167568","pull_request_url":"https://api.github.com/repos/mozilla/version-control-tools/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/mozilla/version-control-tools/pulls/comments/48167568"},"html":{"href":"https://github.com/mozilla/version-control-tools/pull/3#discussion_r48167568"},"pull_request":{"href":"https://api.github.com/repos/mozilla/version-control-tools/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/version-control-tools/pulls/3","id":54252525,"html_url":"https://github.com/mozilla/version-control-tools/pull/3","diff_url":"https://github.com/mozilla/version-control-tools/pull/3.diff","patch_url":"https://github.com/mozilla/version-control-tools/pull/3.patch","issue_url":"https://api.github.com/repos/mozilla/version-control-tools/issues/3","number":3,"state":"open","locked":false,"title":"add query_pushes_by_specified_revision_range function","user":{"login":"MikeLing","id":2166227,"avatar_url":"https://avatars.githubusercontent.com/u/2166227?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeLing","html_url":"https://github.com/MikeLing","followers_url":"https://api.github.com/users/MikeLing/followers","following_url":"https://api.github.com/users/MikeLing/following{/other_user}","gists_url":"https://api.github.com/users/MikeLing/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeLing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeLing/subscriptions","organizations_url":"https://api.github.com/users/MikeLing/orgs","repos_url":"https://api.github.com/users/MikeLing/repos","events_url":"https://api.github.com/users/MikeLing/events{/privacy}","received_events_url":"https://api.github.com/users/MikeLing/received_events","type":"User","site_admin":false},"body":"We should add this function for mozci tool as replacement for query_revisions_range_from_revision_before_and_after in https://github.com/mozilla/mozilla_ci_tools/blob/master/mozci/sources/pushlog.py#L92","created_at":"2015-12-21T12:45:19Z","updated_at":"2015-12-21T17:16:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d1c3a9351947d9d853a6fa5d8e624f75635017f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/version-control-tools/pulls/3/commits","review_comments_url":"https://api.github.com/repos/mozilla/version-control-tools/pulls/3/comments","review_comment_url":"https://api.github.com/repos/mozilla/version-control-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/version-control-tools/issues/3/comments","statuses_url":"https://api.github.com/repos/mozilla/version-control-tools/statuses/c46cb4b52ecc73cf209cb5b6108e86dc6d24fdb6","head":{"label":"MikeLing:bugfix-1228358","ref":"bugfix-1228358","sha":"c46cb4b52ecc73cf209cb5b6108e86dc6d24fdb6","user":{"login":"MikeLing","id":2166227,"avatar_url":"https://avatars.githubusercontent.com/u/2166227?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeLing","html_url":"https://github.com/MikeLing","followers_url":"https://api.github.com/users/MikeLing/followers","following_url":"https://api.github.com/users/MikeLing/following{/other_user}","gists_url":"https://api.github.com/users/MikeLing/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeLing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeLing/subscriptions","organizations_url":"https://api.github.com/users/MikeLing/orgs","repos_url":"https://api.github.com/users/MikeLing/repos","events_url":"https://api.github.com/users/MikeLing/events{/privacy}","received_events_url":"https://api.github.com/users/MikeLing/received_events","type":"User","site_admin":false},"repo":{"id":46332304,"name":"version-control-tools","full_name":"MikeLing/version-control-tools","owner":{"login":"MikeLing","id":2166227,"avatar_url":"https://avatars.githubusercontent.com/u/2166227?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeLing","html_url":"https://github.com/MikeLing","followers_url":"https://api.github.com/users/MikeLing/followers","following_url":"https://api.github.com/users/MikeLing/following{/other_user}","gists_url":"https://api.github.com/users/MikeLing/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeLing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeLing/subscriptions","organizations_url":"https://api.github.com/users/MikeLing/orgs","repos_url":"https://api.github.com/users/MikeLing/repos","events_url":"https://api.github.com/users/MikeLing/events{/privacy}","received_events_url":"https://api.github.com/users/MikeLing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MikeLing/version-control-tools","description":"Mirror of https://hg.mozilla.org/hgcustom/version-control-tools","fork":true,"url":"https://api.github.com/repos/MikeLing/version-control-tools","forks_url":"https://api.github.com/repos/MikeLing/version-control-tools/forks","keys_url":"https://api.github.com/repos/MikeLing/version-control-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MikeLing/version-control-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MikeLing/version-control-tools/teams","hooks_url":"https://api.github.com/repos/MikeLing/version-control-tools/hooks","issue_events_url":"https://api.github.com/repos/MikeLing/version-control-tools/issues/events{/number}","events_url":"https://api.github.com/repos/MikeLing/version-control-tools/events","assignees_url":"https://api.github.com/repos/MikeLing/version-control-tools/assignees{/user}","branches_url":"https://api.github.com/repos/MikeLing/version-control-tools/branches{/branch}","tags_url":"https://api.github.com/repos/MikeLing/version-control-tools/tags","blobs_url":"https://api.github.com/repos/MikeLing/version-control-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MikeLing/version-control-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MikeLing/version-control-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/MikeLing/version-control-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MikeLing/version-control-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/MikeLing/version-control-tools/languages","stargazers_url":"https://api.github.com/repos/MikeLing/version-control-tools/stargazers","contributors_url":"https://api.github.com/repos/MikeLing/version-control-tools/contributors","subscribers_url":"https://api.github.com/repos/MikeLing/version-control-tools/subscribers","subscription_url":"https://api.github.com/repos/MikeLing/version-control-tools/subscription","commits_url":"https://api.github.com/repos/MikeLing/version-control-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/MikeLing/version-control-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/MikeLing/version-control-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/MikeLing/version-control-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/MikeLing/version-control-tools/contents/{+path}","compare_url":"https://api.github.com/repos/MikeLing/version-control-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MikeLing/version-control-tools/merges","archive_url":"https://api.github.com/repos/MikeLing/version-control-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MikeLing/version-control-tools/downloads","issues_url":"https://api.github.com/repos/MikeLing/version-control-tools/issues{/number}","pulls_url":"https://api.github.com/repos/MikeLing/version-control-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/MikeLing/version-control-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/MikeLing/version-control-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MikeLing/version-control-tools/labels{/name}","releases_url":"https://api.github.com/repos/MikeLing/version-control-tools/releases{/id}","created_at":"2015-11-17T08:09:48Z","updated_at":"2015-11-17T08:09:51Z","pushed_at":"2015-12-17T11:27:35Z","git_url":"git://github.com/MikeLing/version-control-tools.git","ssh_url":"git@github.com:MikeLing/version-control-tools.git","clone_url":"https://github.com/MikeLing/version-control-tools.git","svn_url":"https://github.com/MikeLing/version-control-tools","homepage":null,"size":6144,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"9f045b19a4284683f97296f51ca0d2a2d5b75a76","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":42550859,"name":"version-control-tools","full_name":"mozilla/version-control-tools","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/version-control-tools","description":"Mirror of https://hg.mozilla.org/hgcustom/version-control-tools","fork":false,"url":"https://api.github.com/repos/mozilla/version-control-tools","forks_url":"https://api.github.com/repos/mozilla/version-control-tools/forks","keys_url":"https://api.github.com/repos/mozilla/version-control-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/version-control-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/version-control-tools/teams","hooks_url":"https://api.github.com/repos/mozilla/version-control-tools/hooks","issue_events_url":"https://api.github.com/repos/mozilla/version-control-tools/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/version-control-tools/events","assignees_url":"https://api.github.com/repos/mozilla/version-control-tools/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/version-control-tools/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/version-control-tools/tags","blobs_url":"https://api.github.com/repos/mozilla/version-control-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/version-control-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/version-control-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/version-control-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/version-control-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/version-control-tools/languages","stargazers_url":"https://api.github.com/repos/mozilla/version-control-tools/stargazers","contributors_url":"https://api.github.com/repos/mozilla/version-control-tools/contributors","subscribers_url":"https://api.github.com/repos/mozilla/version-control-tools/subscribers","subscription_url":"https://api.github.com/repos/mozilla/version-control-tools/subscription","commits_url":"https://api.github.com/repos/mozilla/version-control-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/version-control-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/version-control-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/version-control-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/version-control-tools/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/version-control-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/version-control-tools/merges","archive_url":"https://api.github.com/repos/mozilla/version-control-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/version-control-tools/downloads","issues_url":"https://api.github.com/repos/mozilla/version-control-tools/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/version-control-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/version-control-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/version-control-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/version-control-tools/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/version-control-tools/releases{/id}","created_at":"2015-09-15T22:40:30Z","updated_at":"2015-12-17T15:19:26Z","pushed_at":"2015-12-21T12:45:19Z","git_url":"git://github.com/mozilla/version-control-tools.git","ssh_url":"git@github.com:mozilla/version-control-tools.git","clone_url":"https://github.com/mozilla/version-control-tools.git","svn_url":"https://github.com/mozilla/version-control-tools","homepage":null,"size":6155,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/version-control-tools/pulls/3"},"html":{"href":"https://github.com/mozilla/version-control-tools/pull/3"},"issue":{"href":"https://api.github.com/repos/mozilla/version-control-tools/issues/3"},"comments":{"href":"https://api.github.com/repos/mozilla/version-control-tools/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/version-control-tools/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/version-control-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/version-control-tools/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/version-control-tools/statuses/c46cb4b52ecc73cf209cb5b6108e86dc6d24fdb6"}}}}