{"action":"created","comment":{"url":"https://api.github.com/repos/mapsme/omim/pulls/comments/50521823","id":50521823,"diff_hunk":"@@ -23,6 +24,25 @@\n \n namespace platform\n {\n+namespace migrate\n+{\n+  // Set of functions to support migration between different versions of MWM\n+  // with totaly incompatible formats.\n+  // 151218 - Migrate to small single file MWM\n+  uint64_t constexpr kRequiredVersion = 151218;\n+  bool NeedMigrate()\n+  {\n+    uint32_t version;\n+    if (!Settings::Get(\"LastMigration\", version))\n+      return true;\n+\n+    if (version >= kRequiredVersion)\n+      return false;\n+\n+    return true;","path":"platform/local_country_file_utils.cpp","position":27,"original_position":27,"commit_id":"b6578abef16f4e4fb1f42dc035dcf76a1bea0367","original_commit_id":"2f6c23c3649a13dd897d998859aecc7eb9c8fee1","user":{"login":"mpimenov","id":10366009,"avatar_url":"https://avatars.githubusercontent.com/u/10366009?v=3","gravatar_id":"","url":"https://api.github.com/users/mpimenov","html_url":"https://github.com/mpimenov","followers_url":"https://api.github.com/users/mpimenov/followers","following_url":"https://api.github.com/users/mpimenov/following{/other_user}","gists_url":"https://api.github.com/users/mpimenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mpimenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpimenov/subscriptions","organizations_url":"https://api.github.com/users/mpimenov/orgs","repos_url":"https://api.github.com/users/mpimenov/repos","events_url":"https://api.github.com/users/mpimenov/events{/privacy}","received_events_url":"https://api.github.com/users/mpimenov/received_events","type":"User","site_admin":false},"body":"```return version < kRequiredVersion;``` ?","created_at":"2016-01-22T10:24:41Z","updated_at":"2016-01-22T10:24:41Z","html_url":"https://github.com/mapsme/omim/pull/1525#discussion_r50521823","pull_request_url":"https://api.github.com/repos/mapsme/omim/pulls/1525","_links":{"self":{"href":"https://api.github.com/repos/mapsme/omim/pulls/comments/50521823"},"html":{"href":"https://github.com/mapsme/omim/pull/1525#discussion_r50521823"},"pull_request":{"href":"https://api.github.com/repos/mapsme/omim/pulls/1525"}}},"pull_request":{"url":"https://api.github.com/repos/mapsme/omim/pulls/1525","id":56869344,"html_url":"https://github.com/mapsme/omim/pull/1525","diff_url":"https://github.com/mapsme/omim/pull/1525.diff","patch_url":"https://github.com/mapsme/omim/pull/1525.patch","issue_url":"https://api.github.com/repos/mapsme/omim/issues/1525","number":1525,"state":"open","locked":false,"title":"[Old map downloader] Single mwm implementation and base support for migration","user":{"login":"syershov","id":14223965,"avatar_url":"https://avatars.githubusercontent.com/u/14223965?v=3","gravatar_id":"","url":"https://api.github.com/users/syershov","html_url":"https://github.com/syershov","followers_url":"https://api.github.com/users/syershov/followers","following_url":"https://api.github.com/users/syershov/following{/other_user}","gists_url":"https://api.github.com/users/syershov/gists{/gist_id}","starred_url":"https://api.github.com/users/syershov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syershov/subscriptions","organizations_url":"https://api.github.com/users/syershov/orgs","repos_url":"https://api.github.com/users/syershov/repos","events_url":"https://api.github.com/users/syershov/events{/privacy}","received_events_url":"https://api.github.com/users/syershov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-22T10:18:21Z","updated_at":"2016-01-22T10:24:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3641cf9d3c23851fb63de9b0c15fad28886adb57","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mapsme/omim/pulls/1525/commits","review_comments_url":"https://api.github.com/repos/mapsme/omim/pulls/1525/comments","review_comment_url":"https://api.github.com/repos/mapsme/omim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapsme/omim/issues/1525/comments","statuses_url":"https://api.github.com/repos/mapsme/omim/statuses/b6578abef16f4e4fb1f42dc035dcf76a1bea0367","head":{"label":"syershov:old-maps","ref":"old-maps","sha":"b6578abef16f4e4fb1f42dc035dcf76a1bea0367","user":{"login":"syershov","id":14223965,"avatar_url":"https://avatars.githubusercontent.com/u/14223965?v=3","gravatar_id":"","url":"https://api.github.com/users/syershov","html_url":"https://github.com/syershov","followers_url":"https://api.github.com/users/syershov/followers","following_url":"https://api.github.com/users/syershov/following{/other_user}","gists_url":"https://api.github.com/users/syershov/gists{/gist_id}","starred_url":"https://api.github.com/users/syershov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syershov/subscriptions","organizations_url":"https://api.github.com/users/syershov/orgs","repos_url":"https://api.github.com/users/syershov/repos","events_url":"https://api.github.com/users/syershov/events{/privacy}","received_events_url":"https://api.github.com/users/syershov/received_events","type":"User","site_admin":false},"repo":{"id":43428606,"name":"omim","full_name":"syershov/omim","owner":{"login":"syershov","id":14223965,"avatar_url":"https://avatars.githubusercontent.com/u/14223965?v=3","gravatar_id":"","url":"https://api.github.com/users/syershov","html_url":"https://github.com/syershov","followers_url":"https://api.github.com/users/syershov/followers","following_url":"https://api.github.com/users/syershov/following{/other_user}","gists_url":"https://api.github.com/users/syershov/gists{/gist_id}","starred_url":"https://api.github.com/users/syershov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syershov/subscriptions","organizations_url":"https://api.github.com/users/syershov/orgs","repos_url":"https://api.github.com/users/syershov/repos","events_url":"https://api.github.com/users/syershov/events{/privacy}","received_events_url":"https://api.github.com/users/syershov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/syershov/omim","description":"MAPS.ME - Offline OpenStreetMap maps for iOS/Android/Mac/Linux/Windows","fork":true,"url":"https://api.github.com/repos/syershov/omim","forks_url":"https://api.github.com/repos/syershov/omim/forks","keys_url":"https://api.github.com/repos/syershov/omim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syershov/omim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syershov/omim/teams","hooks_url":"https://api.github.com/repos/syershov/omim/hooks","issue_events_url":"https://api.github.com/repos/syershov/omim/issues/events{/number}","events_url":"https://api.github.com/repos/syershov/omim/events","assignees_url":"https://api.github.com/repos/syershov/omim/assignees{/user}","branches_url":"https://api.github.com/repos/syershov/omim/branches{/branch}","tags_url":"https://api.github.com/repos/syershov/omim/tags","blobs_url":"https://api.github.com/repos/syershov/omim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syershov/omim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syershov/omim/git/refs{/sha}","trees_url":"https://api.github.com/repos/syershov/omim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syershov/omim/statuses/{sha}","languages_url":"https://api.github.com/repos/syershov/omim/languages","stargazers_url":"https://api.github.com/repos/syershov/omim/stargazers","contributors_url":"https://api.github.com/repos/syershov/omim/contributors","subscribers_url":"https://api.github.com/repos/syershov/omim/subscribers","subscription_url":"https://api.github.com/repos/syershov/omim/subscription","commits_url":"https://api.github.com/repos/syershov/omim/commits{/sha}","git_commits_url":"https://api.github.com/repos/syershov/omim/git/commits{/sha}","comments_url":"https://api.github.com/repos/syershov/omim/comments{/number}","issue_comment_url":"https://api.github.com/repos/syershov/omim/issues/comments{/number}","contents_url":"https://api.github.com/repos/syershov/omim/contents/{+path}","compare_url":"https://api.github.com/repos/syershov/omim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syershov/omim/merges","archive_url":"https://api.github.com/repos/syershov/omim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syershov/omim/downloads","issues_url":"https://api.github.com/repos/syershov/omim/issues{/number}","pulls_url":"https://api.github.com/repos/syershov/omim/pulls{/number}","milestones_url":"https://api.github.com/repos/syershov/omim/milestones{/number}","notifications_url":"https://api.github.com/repos/syershov/omim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syershov/omim/labels{/name}","releases_url":"https://api.github.com/repos/syershov/omim/releases{/id}","deployments_url":"https://api.github.com/repos/syershov/omim/deployments","created_at":"2015-09-30T11:14:03Z","updated_at":"2015-09-30T11:19:55Z","pushed_at":"2016-01-22T10:21:24Z","git_url":"git://github.com/syershov/omim.git","ssh_url":"git@github.com:syershov/omim.git","clone_url":"https://github.com/syershov/omim.git","svn_url":"https://github.com/syershov/omim","homepage":null,"size":2030222,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"mapsme:old-map-downloader","ref":"old-map-downloader","sha":"e33fe07cde11648d38303f35a82f3f5d9c846798","user":{"login":"mapsme","id":14185141,"avatar_url":"https://avatars.githubusercontent.com/u/14185141?v=3","gravatar_id":"","url":"https://api.github.com/users/mapsme","html_url":"https://github.com/mapsme","followers_url":"https://api.github.com/users/mapsme/followers","following_url":"https://api.github.com/users/mapsme/following{/other_user}","gists_url":"https://api.github.com/users/mapsme/gists{/gist_id}","starred_url":"https://api.github.com/users/mapsme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapsme/subscriptions","organizations_url":"https://api.github.com/users/mapsme/orgs","repos_url":"https://api.github.com/users/mapsme/repos","events_url":"https://api.github.com/users/mapsme/events{/privacy}","received_events_url":"https://api.github.com/users/mapsme/received_events","type":"Organization","site_admin":false},"repo":{"id":42798033,"name":"omim","full_name":"mapsme/omim","owner":{"login":"mapsme","id":14185141,"avatar_url":"https://avatars.githubusercontent.com/u/14185141?v=3","gravatar_id":"","url":"https://api.github.com/users/mapsme","html_url":"https://github.com/mapsme","followers_url":"https://api.github.com/users/mapsme/followers","following_url":"https://api.github.com/users/mapsme/following{/other_user}","gists_url":"https://api.github.com/users/mapsme/gists{/gist_id}","starred_url":"https://api.github.com/users/mapsme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapsme/subscriptions","organizations_url":"https://api.github.com/users/mapsme/orgs","repos_url":"https://api.github.com/users/mapsme/repos","events_url":"https://api.github.com/users/mapsme/events{/privacy}","received_events_url":"https://api.github.com/users/mapsme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapsme/omim","description":"MAPS.ME - Offline OpenStreetMap maps for iOS/Android/Mac/Linux/Windows","fork":false,"url":"https://api.github.com/repos/mapsme/omim","forks_url":"https://api.github.com/repos/mapsme/omim/forks","keys_url":"https://api.github.com/repos/mapsme/omim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapsme/omim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapsme/omim/teams","hooks_url":"https://api.github.com/repos/mapsme/omim/hooks","issue_events_url":"https://api.github.com/repos/mapsme/omim/issues/events{/number}","events_url":"https://api.github.com/repos/mapsme/omim/events","assignees_url":"https://api.github.com/repos/mapsme/omim/assignees{/user}","branches_url":"https://api.github.com/repos/mapsme/omim/branches{/branch}","tags_url":"https://api.github.com/repos/mapsme/omim/tags","blobs_url":"https://api.github.com/repos/mapsme/omim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapsme/omim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapsme/omim/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapsme/omim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapsme/omim/statuses/{sha}","languages_url":"https://api.github.com/repos/mapsme/omim/languages","stargazers_url":"https://api.github.com/repos/mapsme/omim/stargazers","contributors_url":"https://api.github.com/repos/mapsme/omim/contributors","subscribers_url":"https://api.github.com/repos/mapsme/omim/subscribers","subscription_url":"https://api.github.com/repos/mapsme/omim/subscription","commits_url":"https://api.github.com/repos/mapsme/omim/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapsme/omim/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapsme/omim/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapsme/omim/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapsme/omim/contents/{+path}","compare_url":"https://api.github.com/repos/mapsme/omim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapsme/omim/merges","archive_url":"https://api.github.com/repos/mapsme/omim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapsme/omim/downloads","issues_url":"https://api.github.com/repos/mapsme/omim/issues{/number}","pulls_url":"https://api.github.com/repos/mapsme/omim/pulls{/number}","milestones_url":"https://api.github.com/repos/mapsme/omim/milestones{/number}","notifications_url":"https://api.github.com/repos/mapsme/omim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapsme/omim/labels{/name}","releases_url":"https://api.github.com/repos/mapsme/omim/releases{/id}","deployments_url":"https://api.github.com/repos/mapsme/omim/deployments","created_at":"2015-09-20T02:57:13Z","updated_at":"2016-01-20T21:26:53Z","pushed_at":"2016-01-22T10:21:25Z","git_url":"git://github.com/mapsme/omim.git","ssh_url":"git@github.com:mapsme/omim.git","clone_url":"https://github.com/mapsme/omim.git","svn_url":"https://github.com/mapsme/omim","homepage":null,"size":2064665,"stargazers_count":1586,"watchers_count":1586,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":211,"mirror_url":null,"open_issues_count":104,"forks":211,"open_issues":104,"watchers":1586,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapsme/omim/pulls/1525"},"html":{"href":"https://github.com/mapsme/omim/pull/1525"},"issue":{"href":"https://api.github.com/repos/mapsme/omim/issues/1525"},"comments":{"href":"https://api.github.com/repos/mapsme/omim/issues/1525/comments"},"review_comments":{"href":"https://api.github.com/repos/mapsme/omim/pulls/1525/comments"},"review_comment":{"href":"https://api.github.com/repos/mapsme/omim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapsme/omim/pulls/1525/commits"},"statuses":{"href":"https://api.github.com/repos/mapsme/omim/statuses/b6578abef16f4e4fb1f42dc035dcf76a1bea0367"}}}}