{"action":"created","comment":{"url":"https://api.github.com/repos/borgbackup/borg/pulls/comments/84449054","pull_request_review_id":5227346,"id":84449054,"diff_hunk":"@@ -1,3 +1,11 @@\n-# This is a python package\n+import re\n \n from ._version import version as __version__\n+\n+version_re = r'(\\d+)\\.(\\d+)\\.(\\d+)'\n+\n+m = re.match(version_re, __version__)\n+if m:\n+    __version_tuple__ = tuple(map(int, m.groups()))\n+else:\n+    raise RuntimeError(\"Can't parse __version__: %r\" % __version__)","path":"borg/__init__.py","position":12,"original_position":12,"commit_id":"d49a782796413e4b1492f73b3dd213fd696fefe6","original_commit_id":"d49a782796413e4b1492f73b3dd213fd696fefe6","user":{"login":"enkore","id":1330164,"avatar_url":"https://avatars.githubusercontent.com/u/1330164?v=3","gravatar_id":"","url":"https://api.github.com/users/enkore","html_url":"https://github.com/enkore","followers_url":"https://api.github.com/users/enkore/followers","following_url":"https://api.github.com/users/enkore/following{/other_user}","gists_url":"https://api.github.com/users/enkore/gists{/gist_id}","starred_url":"https://api.github.com/users/enkore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enkore/subscriptions","organizations_url":"https://api.github.com/users/enkore/orgs","repos_url":"https://api.github.com/users/enkore/repos","events_url":"https://api.github.com/users/enkore/events{/privacy}","received_events_url":"https://api.github.com/users/enkore/received_events","type":"User","site_admin":false},"body":"Use `distutils.version` instead?\r\n\r\n```py\r\n>>> c = version.LooseVersion()\r\n\r\n>>> c.parse('1.1.0b3.dev54+ng2f4039f.d20161015')\r\n\r\n>>> c.version\r\n[1, 1, 0, 'b', 3, 'dev', 54, '+', 'ng', 2, 'f', 4039, 'f', 'd', 20161015]\r\n```","created_at":"2016-10-21T09:42:27Z","updated_at":"2016-10-21T09:42:27Z","html_url":"https://github.com/borgbackup/borg/pull/1752#discussion_r84449054","pull_request_url":"https://api.github.com/repos/borgbackup/borg/pulls/1752","_links":{"self":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/comments/84449054"},"html":{"href":"https://github.com/borgbackup/borg/pull/1752#discussion_r84449054"},"pull_request":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1752"}}},"pull_request":{"url":"https://api.github.com/repos/borgbackup/borg/pulls/1752","id":90310618,"html_url":"https://github.com/borgbackup/borg/pull/1752","diff_url":"https://github.com/borgbackup/borg/pull/1752.diff","patch_url":"https://github.com/borgbackup/borg/pull/1752.patch","issue_url":"https://api.github.com/repos/borgbackup/borg/issues/1752","number":1752,"state":"open","locked":false,"title":"implement borgmajor/minor/patch placeholders, fixes #1694","user":{"login":"ThomasWaldmann","id":356103,"avatar_url":"https://avatars.githubusercontent.com/u/356103?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasWaldmann","html_url":"https://github.com/ThomasWaldmann","followers_url":"https://api.github.com/users/ThomasWaldmann/followers","following_url":"https://api.github.com/users/ThomasWaldmann/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWaldmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWaldmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWaldmann/subscriptions","organizations_url":"https://api.github.com/users/ThomasWaldmann/orgs","repos_url":"https://api.github.com/users/ThomasWaldmann/repos","events_url":"https://api.github.com/users/ThomasWaldmann/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWaldmann/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-21T01:46:14Z","updated_at":"2016-10-21T09:42:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83469b352f96ff7560dd653c11b30f0baea7a477","assignee":{"login":"ThomasWaldmann","id":356103,"avatar_url":"https://avatars.githubusercontent.com/u/356103?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasWaldmann","html_url":"https://github.com/ThomasWaldmann","followers_url":"https://api.github.com/users/ThomasWaldmann/followers","following_url":"https://api.github.com/users/ThomasWaldmann/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWaldmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWaldmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWaldmann/subscriptions","organizations_url":"https://api.github.com/users/ThomasWaldmann/orgs","repos_url":"https://api.github.com/users/ThomasWaldmann/repos","events_url":"https://api.github.com/users/ThomasWaldmann/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWaldmann/received_events","type":"User","site_admin":false},"assignees":[{"login":"ThomasWaldmann","id":356103,"avatar_url":"https://avatars.githubusercontent.com/u/356103?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasWaldmann","html_url":"https://github.com/ThomasWaldmann","followers_url":"https://api.github.com/users/ThomasWaldmann/followers","following_url":"https://api.github.com/users/ThomasWaldmann/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWaldmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWaldmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWaldmann/subscriptions","organizations_url":"https://api.github.com/users/ThomasWaldmann/orgs","repos_url":"https://api.github.com/users/ThomasWaldmann/repos","events_url":"https://api.github.com/users/ThomasWaldmann/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWaldmann/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/borgbackup/borg/milestones/33","html_url":"https://github.com/borgbackup/borg/milestones/1.0.8%20(rc2?)","labels_url":"https://api.github.com/repos/borgbackup/borg/milestones/33/labels","id":2072650,"number":33,"title":"1.0.8 (rc2?)","description":"","creator":{"login":"ThomasWaldmann","id":356103,"avatar_url":"https://avatars.githubusercontent.com/u/356103?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasWaldmann","html_url":"https://github.com/ThomasWaldmann","followers_url":"https://api.github.com/users/ThomasWaldmann/followers","following_url":"https://api.github.com/users/ThomasWaldmann/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWaldmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWaldmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWaldmann/subscriptions","organizations_url":"https://api.github.com/users/ThomasWaldmann/orgs","repos_url":"https://api.github.com/users/ThomasWaldmann/repos","events_url":"https://api.github.com/users/ThomasWaldmann/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWaldmann/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":6,"state":"open","created_at":"2016-10-16T14:58:54Z","updated_at":"2016-10-21T01:46:22Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/borgbackup/borg/pulls/1752/commits","review_comments_url":"https://api.github.com/repos/borgbackup/borg/pulls/1752/comments","review_comment_url":"https://api.github.com/repos/borgbackup/borg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/1752/comments","statuses_url":"https://api.github.com/repos/borgbackup/borg/statuses/d49a782796413e4b1492f73b3dd213fd696fefe6","head":{"label":"ThomasWaldmann:borgversion-enhanced","ref":"borgversion-enhanced","sha":"d49a782796413e4b1492f73b3dd213fd696fefe6","user":{"login":"ThomasWaldmann","id":356103,"avatar_url":"https://avatars.githubusercontent.com/u/356103?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasWaldmann","html_url":"https://github.com/ThomasWaldmann","followers_url":"https://api.github.com/users/ThomasWaldmann/followers","following_url":"https://api.github.com/users/ThomasWaldmann/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWaldmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWaldmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWaldmann/subscriptions","organizations_url":"https://api.github.com/users/ThomasWaldmann/orgs","repos_url":"https://api.github.com/users/ThomasWaldmann/repos","events_url":"https://api.github.com/users/ThomasWaldmann/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWaldmann/received_events","type":"User","site_admin":false},"repo":{"id":35605377,"name":"borg","full_name":"ThomasWaldmann/borg","owner":{"login":"ThomasWaldmann","id":356103,"avatar_url":"https://avatars.githubusercontent.com/u/356103?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasWaldmann","html_url":"https://github.com/ThomasWaldmann","followers_url":"https://api.github.com/users/ThomasWaldmann/followers","following_url":"https://api.github.com/users/ThomasWaldmann/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWaldmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWaldmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWaldmann/subscriptions","organizations_url":"https://api.github.com/users/ThomasWaldmann/orgs","repos_url":"https://api.github.com/users/ThomasWaldmann/repos","events_url":"https://api.github.com/users/ThomasWaldmann/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWaldmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ThomasWaldmann/borg","description":"Backup Software","fork":true,"url":"https://api.github.com/repos/ThomasWaldmann/borg","forks_url":"https://api.github.com/repos/ThomasWaldmann/borg/forks","keys_url":"https://api.github.com/repos/ThomasWaldmann/borg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ThomasWaldmann/borg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ThomasWaldmann/borg/teams","hooks_url":"https://api.github.com/repos/ThomasWaldmann/borg/hooks","issue_events_url":"https://api.github.com/repos/ThomasWaldmann/borg/issues/events{/number}","events_url":"https://api.github.com/repos/ThomasWaldmann/borg/events","assignees_url":"https://api.github.com/repos/ThomasWaldmann/borg/assignees{/user}","branches_url":"https://api.github.com/repos/ThomasWaldmann/borg/branches{/branch}","tags_url":"https://api.github.com/repos/ThomasWaldmann/borg/tags","blobs_url":"https://api.github.com/repos/ThomasWaldmann/borg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ThomasWaldmann/borg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ThomasWaldmann/borg/git/refs{/sha}","trees_url":"https://api.github.com/repos/ThomasWaldmann/borg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ThomasWaldmann/borg/statuses/{sha}","languages_url":"https://api.github.com/repos/ThomasWaldmann/borg/languages","stargazers_url":"https://api.github.com/repos/ThomasWaldmann/borg/stargazers","contributors_url":"https://api.github.com/repos/ThomasWaldmann/borg/contributors","subscribers_url":"https://api.github.com/repos/ThomasWaldmann/borg/subscribers","subscription_url":"https://api.github.com/repos/ThomasWaldmann/borg/subscription","commits_url":"https://api.github.com/repos/ThomasWaldmann/borg/commits{/sha}","git_commits_url":"https://api.github.com/repos/ThomasWaldmann/borg/git/commits{/sha}","comments_url":"https://api.github.com/repos/ThomasWaldmann/borg/comments{/number}","issue_comment_url":"https://api.github.com/repos/ThomasWaldmann/borg/issues/comments{/number}","contents_url":"https://api.github.com/repos/ThomasWaldmann/borg/contents/{+path}","compare_url":"https://api.github.com/repos/ThomasWaldmann/borg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ThomasWaldmann/borg/merges","archive_url":"https://api.github.com/repos/ThomasWaldmann/borg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ThomasWaldmann/borg/downloads","issues_url":"https://api.github.com/repos/ThomasWaldmann/borg/issues{/number}","pulls_url":"https://api.github.com/repos/ThomasWaldmann/borg/pulls{/number}","milestones_url":"https://api.github.com/repos/ThomasWaldmann/borg/milestones{/number}","notifications_url":"https://api.github.com/repos/ThomasWaldmann/borg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ThomasWaldmann/borg/labels{/name}","releases_url":"https://api.github.com/repos/ThomasWaldmann/borg/releases{/id}","deployments_url":"https://api.github.com/repos/ThomasWaldmann/borg/deployments","created_at":"2015-05-14T10:27:42Z","updated_at":"2016-01-11T22:17:17Z","pushed_at":"2016-10-21T02:15:40Z","git_url":"git://github.com/ThomasWaldmann/borg.git","ssh_url":"git@github.com:ThomasWaldmann/borg.git","clone_url":"https://github.com/ThomasWaldmann/borg.git","svn_url":"https://github.com/ThomasWaldmann/borg","homepage":null,"size":5817,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"borgbackup:1.0-maint","ref":"1.0-maint","sha":"bd9f6a6ff98da0e15d2211fd573495ed6ddb6d0f","user":{"login":"borgbackup","id":12418060,"avatar_url":"https://avatars.githubusercontent.com/u/12418060?v=3","gravatar_id":"","url":"https://api.github.com/users/borgbackup","html_url":"https://github.com/borgbackup","followers_url":"https://api.github.com/users/borgbackup/followers","following_url":"https://api.github.com/users/borgbackup/following{/other_user}","gists_url":"https://api.github.com/users/borgbackup/gists{/gist_id}","starred_url":"https://api.github.com/users/borgbackup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borgbackup/subscriptions","organizations_url":"https://api.github.com/users/borgbackup/orgs","repos_url":"https://api.github.com/users/borgbackup/repos","events_url":"https://api.github.com/users/borgbackup/events{/privacy}","received_events_url":"https://api.github.com/users/borgbackup/received_events","type":"Organization","site_admin":false},"repo":{"id":35517126,"name":"borg","full_name":"borgbackup/borg","owner":{"login":"borgbackup","id":12418060,"avatar_url":"https://avatars.githubusercontent.com/u/12418060?v=3","gravatar_id":"","url":"https://api.github.com/users/borgbackup","html_url":"https://github.com/borgbackup","followers_url":"https://api.github.com/users/borgbackup/followers","following_url":"https://api.github.com/users/borgbackup/following{/other_user}","gists_url":"https://api.github.com/users/borgbackup/gists{/gist_id}","starred_url":"https://api.github.com/users/borgbackup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borgbackup/subscriptions","organizations_url":"https://api.github.com/users/borgbackup/orgs","repos_url":"https://api.github.com/users/borgbackup/repos","events_url":"https://api.github.com/users/borgbackup/events{/privacy}","received_events_url":"https://api.github.com/users/borgbackup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/borgbackup/borg","description":"Deduplicating backup program with compression and authenticated encryption.","fork":false,"url":"https://api.github.com/repos/borgbackup/borg","forks_url":"https://api.github.com/repos/borgbackup/borg/forks","keys_url":"https://api.github.com/repos/borgbackup/borg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/borgbackup/borg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/borgbackup/borg/teams","hooks_url":"https://api.github.com/repos/borgbackup/borg/hooks","issue_events_url":"https://api.github.com/repos/borgbackup/borg/issues/events{/number}","events_url":"https://api.github.com/repos/borgbackup/borg/events","assignees_url":"https://api.github.com/repos/borgbackup/borg/assignees{/user}","branches_url":"https://api.github.com/repos/borgbackup/borg/branches{/branch}","tags_url":"https://api.github.com/repos/borgbackup/borg/tags","blobs_url":"https://api.github.com/repos/borgbackup/borg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/borgbackup/borg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/borgbackup/borg/git/refs{/sha}","trees_url":"https://api.github.com/repos/borgbackup/borg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/borgbackup/borg/statuses/{sha}","languages_url":"https://api.github.com/repos/borgbackup/borg/languages","stargazers_url":"https://api.github.com/repos/borgbackup/borg/stargazers","contributors_url":"https://api.github.com/repos/borgbackup/borg/contributors","subscribers_url":"https://api.github.com/repos/borgbackup/borg/subscribers","subscription_url":"https://api.github.com/repos/borgbackup/borg/subscription","commits_url":"https://api.github.com/repos/borgbackup/borg/commits{/sha}","git_commits_url":"https://api.github.com/repos/borgbackup/borg/git/commits{/sha}","comments_url":"https://api.github.com/repos/borgbackup/borg/comments{/number}","issue_comment_url":"https://api.github.com/repos/borgbackup/borg/issues/comments{/number}","contents_url":"https://api.github.com/repos/borgbackup/borg/contents/{+path}","compare_url":"https://api.github.com/repos/borgbackup/borg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/borgbackup/borg/merges","archive_url":"https://api.github.com/repos/borgbackup/borg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/borgbackup/borg/downloads","issues_url":"https://api.github.com/repos/borgbackup/borg/issues{/number}","pulls_url":"https://api.github.com/repos/borgbackup/borg/pulls{/number}","milestones_url":"https://api.github.com/repos/borgbackup/borg/milestones{/number}","notifications_url":"https://api.github.com/repos/borgbackup/borg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/borgbackup/borg/labels{/name}","releases_url":"https://api.github.com/repos/borgbackup/borg/releases{/id}","deployments_url":"https://api.github.com/repos/borgbackup/borg/deployments","created_at":"2015-05-12T23:10:47Z","updated_at":"2016-10-20T18:27:41Z","pushed_at":"2016-10-21T02:16:57Z","git_url":"git://github.com/borgbackup/borg.git","ssh_url":"git@github.com:borgbackup/borg.git","clone_url":"https://github.com/borgbackup/borg.git","svn_url":"https://github.com/borgbackup/borg","homepage":"https://borgbackup.readthedocs.io/","size":7002,"stargazers_count":1591,"watchers_count":1591,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":155,"mirror_url":null,"open_issues_count":218,"forks":155,"open_issues":218,"watchers":1591,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1752"},"html":{"href":"https://github.com/borgbackup/borg/pull/1752"},"issue":{"href":"https://api.github.com/repos/borgbackup/borg/issues/1752"},"comments":{"href":"https://api.github.com/repos/borgbackup/borg/issues/1752/comments"},"review_comments":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1752/comments"},"review_comment":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1752/commits"},"statuses":{"href":"https://api.github.com/repos/borgbackup/borg/statuses/d49a782796413e4b1492f73b3dd213fd696fefe6"}}}}
{"actor":{"display_login":"enkore"}}