{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/brew/pulls/comments/74912174","id":74912174,"diff_hunk":"@@ -1013,9 +1018,10 @@ def _outdated_versions(options = {})\n \n     installed_kegs.each do |keg|\n       version = keg.version\n+      tab = Tab.for_keg(keg)\n       all_versions << version\n \n-      return [] if pkg_version <= version && !version.head?\n+      return [] if pkg_version <= version && epoch == tab.epoch && !version.head?","path":"Library/Homebrew/formula.rb","position":34,"original_position":34,"commit_id":"f551d7df1b78696de48245066ae23e7e682bf5e6","original_commit_id":"bf16783f89c79a0c1f46690a0ca1ae7c23bfbee2","user":{"login":"vladshablinsky","id":4408920,"avatar_url":"https://avatars.githubusercontent.com/u/4408920?v=3","gravatar_id":"","url":"https://api.github.com/users/vladshablinsky","html_url":"https://github.com/vladshablinsky","followers_url":"https://api.github.com/users/vladshablinsky/followers","following_url":"https://api.github.com/users/vladshablinsky/following{/other_user}","gists_url":"https://api.github.com/users/vladshablinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/vladshablinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladshablinsky/subscriptions","organizations_url":"https://api.github.com/users/vladshablinsky/orgs","repos_url":"https://api.github.com/users/vladshablinsky/repos","events_url":"https://api.github.com/users/vladshablinsky/events{/privacy}","received_events_url":"https://api.github.com/users/vladshablinsky/received_events","type":"User","site_admin":false},"body":"I can come up with this:\r\n\r\n```ruby\r\n      if !version.head?\r\n        return [] if epoch == tab.epoch && pkg_version <= version\r\n      end\r\n```","created_at":"2016-08-16T10:42:12Z","updated_at":"2016-08-16T10:42:12Z","html_url":"https://github.com/Homebrew/brew/pull/719#discussion_r74912174","pull_request_url":"https://api.github.com/repos/Homebrew/brew/pulls/719","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/comments/74912174"},"html":{"href":"https://github.com/Homebrew/brew/pull/719#discussion_r74912174"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/719"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/brew/pulls/719","id":81444560,"html_url":"https://github.com/Homebrew/brew/pull/719","diff_url":"https://github.com/Homebrew/brew/pull/719.diff","patch_url":"https://github.com/Homebrew/brew/pull/719.patch","issue_url":"https://api.github.com/repos/Homebrew/brew/issues/719","number":719,"state":"open","locked":false,"title":"Implement epochs","user":{"login":"vladshablinsky","id":4408920,"avatar_url":"https://avatars.githubusercontent.com/u/4408920?v=3","gravatar_id":"","url":"https://api.github.com/users/vladshablinsky","html_url":"https://github.com/vladshablinsky","followers_url":"https://api.github.com/users/vladshablinsky/followers","following_url":"https://api.github.com/users/vladshablinsky/following{/other_user}","gists_url":"https://api.github.com/users/vladshablinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/vladshablinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladshablinsky/subscriptions","organizations_url":"https://api.github.com/users/vladshablinsky/orgs","repos_url":"https://api.github.com/users/vladshablinsky/repos","events_url":"https://api.github.com/users/vladshablinsky/events{/privacy}","received_events_url":"https://api.github.com/users/vladshablinsky/received_events","type":"User","site_admin":false},"body":"- [x] Have you followed the guidelines in our [Contributing](https://github.com/Homebrew/brew/blob/master/.github/CONTRIBUTING.md) document?\r\n- [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/Homebrew/brew/pulls) for the same change?\r\n- [x] Have you added an explanation of what your changes do and why you'd like us to include them?\r\n- [x] Have you written new tests for your changes? [Here's an example](https://github.com/Homebrew/homebrew/pull/49031).\r\n- [x] Have you successfully run `brew tests` with your changes locally?\r\n\r\n-----\r\n\r\nIssue: https://github.com/Homebrew/legacy-homebrew/issues/41563\r\n\r\nThe idea is to add `epoch` to DSL and reimplement `outdated_versions`-related things to be able to change version schemes, thus epochs are quite similar to revisions, but we store them in tabs.\r\n\r\nCC @xu-cheng ","created_at":"2016-08-16T09:59:04Z","updated_at":"2016-08-16T10:42:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10c6577dd8094771ef4b8398fa862479dd963553","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Homebrew/brew/milestones/2","html_url":"https://github.com/Homebrew/brew/milestones/1.0.0","labels_url":"https://api.github.com/repos/Homebrew/brew/milestones/2/labels","id":1772518,"number":2,"title":"1.0.0","description":null,"creator":{"login":"MikeMcQuaid","id":125011,"avatar_url":"https://avatars.githubusercontent.com/u/125011?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeMcQuaid","html_url":"https://github.com/MikeMcQuaid","followers_url":"https://api.github.com/users/MikeMcQuaid/followers","following_url":"https://api.github.com/users/MikeMcQuaid/following{/other_user}","gists_url":"https://api.github.com/users/MikeMcQuaid/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeMcQuaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeMcQuaid/subscriptions","organizations_url":"https://api.github.com/users/MikeMcQuaid/orgs","repos_url":"https://api.github.com/users/MikeMcQuaid/repos","events_url":"https://api.github.com/users/MikeMcQuaid/events{/privacy}","received_events_url":"https://api.github.com/users/MikeMcQuaid/received_events","type":"User","site_admin":true},"open_issues":7,"closed_issues":3,"state":"open","created_at":"2016-05-17T20:17:37Z","updated_at":"2016-08-16T10:04:14Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Homebrew/brew/pulls/719/commits","review_comments_url":"https://api.github.com/repos/Homebrew/brew/pulls/719/comments","review_comment_url":"https://api.github.com/repos/Homebrew/brew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/brew/issues/719/comments","statuses_url":"https://api.github.com/repos/Homebrew/brew/statuses/f551d7df1b78696de48245066ae23e7e682bf5e6","head":{"label":"vladshablinsky:epochs","ref":"epochs","sha":"f551d7df1b78696de48245066ae23e7e682bf5e6","user":{"login":"vladshablinsky","id":4408920,"avatar_url":"https://avatars.githubusercontent.com/u/4408920?v=3","gravatar_id":"","url":"https://api.github.com/users/vladshablinsky","html_url":"https://github.com/vladshablinsky","followers_url":"https://api.github.com/users/vladshablinsky/followers","following_url":"https://api.github.com/users/vladshablinsky/following{/other_user}","gists_url":"https://api.github.com/users/vladshablinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/vladshablinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladshablinsky/subscriptions","organizations_url":"https://api.github.com/users/vladshablinsky/orgs","repos_url":"https://api.github.com/users/vladshablinsky/repos","events_url":"https://api.github.com/users/vladshablinsky/events{/privacy}","received_events_url":"https://api.github.com/users/vladshablinsky/received_events","type":"User","site_admin":false},"repo":{"id":55350163,"name":"brew","full_name":"vladshablinsky/brew","owner":{"login":"vladshablinsky","id":4408920,"avatar_url":"https://avatars.githubusercontent.com/u/4408920?v=3","gravatar_id":"","url":"https://api.github.com/users/vladshablinsky","html_url":"https://github.com/vladshablinsky","followers_url":"https://api.github.com/users/vladshablinsky/followers","following_url":"https://api.github.com/users/vladshablinsky/following{/other_user}","gists_url":"https://api.github.com/users/vladshablinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/vladshablinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladshablinsky/subscriptions","organizations_url":"https://api.github.com/users/vladshablinsky/orgs","repos_url":"https://api.github.com/users/vladshablinsky/repos","events_url":"https://api.github.com/users/vladshablinsky/events{/privacy}","received_events_url":"https://api.github.com/users/vladshablinsky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vladshablinsky/brew","description":":beer: The missing package manager for OS X","fork":true,"url":"https://api.github.com/repos/vladshablinsky/brew","forks_url":"https://api.github.com/repos/vladshablinsky/brew/forks","keys_url":"https://api.github.com/repos/vladshablinsky/brew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vladshablinsky/brew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vladshablinsky/brew/teams","hooks_url":"https://api.github.com/repos/vladshablinsky/brew/hooks","issue_events_url":"https://api.github.com/repos/vladshablinsky/brew/issues/events{/number}","events_url":"https://api.github.com/repos/vladshablinsky/brew/events","assignees_url":"https://api.github.com/repos/vladshablinsky/brew/assignees{/user}","branches_url":"https://api.github.com/repos/vladshablinsky/brew/branches{/branch}","tags_url":"https://api.github.com/repos/vladshablinsky/brew/tags","blobs_url":"https://api.github.com/repos/vladshablinsky/brew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vladshablinsky/brew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vladshablinsky/brew/git/refs{/sha}","trees_url":"https://api.github.com/repos/vladshablinsky/brew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vladshablinsky/brew/statuses/{sha}","languages_url":"https://api.github.com/repos/vladshablinsky/brew/languages","stargazers_url":"https://api.github.com/repos/vladshablinsky/brew/stargazers","contributors_url":"https://api.github.com/repos/vladshablinsky/brew/contributors","subscribers_url":"https://api.github.com/repos/vladshablinsky/brew/subscribers","subscription_url":"https://api.github.com/repos/vladshablinsky/brew/subscription","commits_url":"https://api.github.com/repos/vladshablinsky/brew/commits{/sha}","git_commits_url":"https://api.github.com/repos/vladshablinsky/brew/git/commits{/sha}","comments_url":"https://api.github.com/repos/vladshablinsky/brew/comments{/number}","issue_comment_url":"https://api.github.com/repos/vladshablinsky/brew/issues/comments{/number}","contents_url":"https://api.github.com/repos/vladshablinsky/brew/contents/{+path}","compare_url":"https://api.github.com/repos/vladshablinsky/brew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vladshablinsky/brew/merges","archive_url":"https://api.github.com/repos/vladshablinsky/brew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vladshablinsky/brew/downloads","issues_url":"https://api.github.com/repos/vladshablinsky/brew/issues{/number}","pulls_url":"https://api.github.com/repos/vladshablinsky/brew/pulls{/number}","milestones_url":"https://api.github.com/repos/vladshablinsky/brew/milestones{/number}","notifications_url":"https://api.github.com/repos/vladshablinsky/brew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vladshablinsky/brew/labels{/name}","releases_url":"https://api.github.com/repos/vladshablinsky/brew/releases{/id}","deployments_url":"https://api.github.com/repos/vladshablinsky/brew/deployments","created_at":"2016-04-03T14:25:00Z","updated_at":"2016-04-03T14:25:02Z","pushed_at":"2016-08-16T10:10:40Z","git_url":"git://github.com/vladshablinsky/brew.git","ssh_url":"git@github.com:vladshablinsky/brew.git","clone_url":"https://github.com/vladshablinsky/brew.git","svn_url":"https://github.com/vladshablinsky/brew","homepage":"http://brew.sh","size":10494,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"Homebrew:master","ref":"master","sha":"dffd556220a726a9916773dc537662bf3eab656a","user":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"repo":{"id":53238813,"name":"brew","full_name":"Homebrew/brew","owner":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Homebrew/brew","description":":beer: The missing package manager for OS X","fork":false,"url":"https://api.github.com/repos/Homebrew/brew","forks_url":"https://api.github.com/repos/Homebrew/brew/forks","keys_url":"https://api.github.com/repos/Homebrew/brew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homebrew/brew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homebrew/brew/teams","hooks_url":"https://api.github.com/repos/Homebrew/brew/hooks","issue_events_url":"https://api.github.com/repos/Homebrew/brew/issues/events{/number}","events_url":"https://api.github.com/repos/Homebrew/brew/events","assignees_url":"https://api.github.com/repos/Homebrew/brew/assignees{/user}","branches_url":"https://api.github.com/repos/Homebrew/brew/branches{/branch}","tags_url":"https://api.github.com/repos/Homebrew/brew/tags","blobs_url":"https://api.github.com/repos/Homebrew/brew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homebrew/brew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homebrew/brew/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homebrew/brew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homebrew/brew/statuses/{sha}","languages_url":"https://api.github.com/repos/Homebrew/brew/languages","stargazers_url":"https://api.github.com/repos/Homebrew/brew/stargazers","contributors_url":"https://api.github.com/repos/Homebrew/brew/contributors","subscribers_url":"https://api.github.com/repos/Homebrew/brew/subscribers","subscription_url":"https://api.github.com/repos/Homebrew/brew/subscription","commits_url":"https://api.github.com/repos/Homebrew/brew/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homebrew/brew/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homebrew/brew/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homebrew/brew/issues/comments{/number}","contents_url":"https://api.github.com/repos/Homebrew/brew/contents/{+path}","compare_url":"https://api.github.com/repos/Homebrew/brew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homebrew/brew/merges","archive_url":"https://api.github.com/repos/Homebrew/brew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homebrew/brew/downloads","issues_url":"https://api.github.com/repos/Homebrew/brew/issues{/number}","pulls_url":"https://api.github.com/repos/Homebrew/brew/pulls{/number}","milestones_url":"https://api.github.com/repos/Homebrew/brew/milestones{/number}","notifications_url":"https://api.github.com/repos/Homebrew/brew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homebrew/brew/labels{/name}","releases_url":"https://api.github.com/repos/Homebrew/brew/releases{/id}","deployments_url":"https://api.github.com/repos/Homebrew/brew/deployments","created_at":"2016-03-06T05:08:38Z","updated_at":"2016-08-16T10:16:36Z","pushed_at":"2016-08-16T10:16:50Z","git_url":"git://github.com/Homebrew/brew.git","ssh_url":"git@github.com:Homebrew/brew.git","clone_url":"https://github.com/Homebrew/brew.git","svn_url":"https://github.com/Homebrew/brew","homepage":"http://brew.sh","size":11155,"stargazers_count":2581,"watchers_count":2581,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":752,"mirror_url":null,"open_issues_count":37,"forks":752,"open_issues":37,"watchers":2581,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/719"},"html":{"href":"https://github.com/Homebrew/brew/pull/719"},"issue":{"href":"https://api.github.com/repos/Homebrew/brew/issues/719"},"comments":{"href":"https://api.github.com/repos/Homebrew/brew/issues/719/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/719/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/719/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/brew/statuses/f551d7df1b78696de48245066ae23e7e682bf5e6"}}}}
{"actor":{"display_login":"vladshablinsky"}}