{"action":"created","comment":{"url":"https://api.github.com/repos/bram85/topydo/pulls/comments/32359610","id":32359610,"diff_hunk":"@@ -126,6 +130,12 @@ def archive(self):\n     def identifiers(self):\n         return self.cp.get('topydo', 'identifiers')\n \n+    def backup(self):\n+        try:\n+            return self.cp.getboolean('topydo', 'backup')\n+        except ValueError:\n+            return self.defaults['colors'] == '1'","path":"topydo/lib/Config.py","position":35,"original_position":35,"commit_id":"2b20424508784e6d18995cc65da21130d7f6f149","original_commit_id":"2b20424508784e6d18995cc65da21130d7f6f149","user":{"login":"bram85","id":63248,"avatar_url":"https://avatars.githubusercontent.com/u/63248?v=3","gravatar_id":"","url":"https://api.github.com/users/bram85","html_url":"https://github.com/bram85","followers_url":"https://api.github.com/users/bram85/followers","following_url":"https://api.github.com/users/bram85/following{/other_user}","gists_url":"https://api.github.com/users/bram85/gists{/gist_id}","starred_url":"https://api.github.com/users/bram85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bram85/subscriptions","organizations_url":"https://api.github.com/users/bram85/orgs","repos_url":"https://api.github.com/users/bram85/repos","events_url":"https://api.github.com/users/bram85/events{/privacy}","received_events_url":"https://api.github.com/users/bram85/received_events","type":"User","site_admin":false},"body":"Wrong key, should be `backup`.","created_at":"2015-06-12T22:09:50Z","updated_at":"2015-06-12T22:09:50Z","html_url":"https://github.com/bram85/topydo/pull/47#discussion_r32359610","pull_request_url":"https://api.github.com/repos/bram85/topydo/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/bram85/topydo/pulls/comments/32359610"},"html":{"href":"https://github.com/bram85/topydo/pull/47#discussion_r32359610"},"pull_request":{"href":"https://api.github.com/repos/bram85/topydo/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/bram85/topydo/pulls/47","id":37591688,"html_url":"https://github.com/bram85/topydo/pull/47","diff_url":"https://github.com/bram85/topydo/pull/47.diff","patch_url":"https://github.com/bram85/topydo/pull/47.patch","issue_url":"https://api.github.com/repos/bram85/topydo/issues/47","number":47,"state":"open","locked":false,"title":"Introduce backup feature and `undo` command","user":{"login":"mruwek","id":500710,"avatar_url":"https://avatars.githubusercontent.com/u/500710?v=3","gravatar_id":"","url":"https://api.github.com/users/mruwek","html_url":"https://github.com/mruwek","followers_url":"https://api.github.com/users/mruwek/followers","following_url":"https://api.github.com/users/mruwek/following{/other_user}","gists_url":"https://api.github.com/users/mruwek/gists{/gist_id}","starred_url":"https://api.github.com/users/mruwek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mruwek/subscriptions","organizations_url":"https://api.github.com/users/mruwek/orgs","repos_url":"https://api.github.com/users/mruwek/repos","events_url":"https://api.github.com/users/mruwek/events{/privacy}","received_events_url":"https://api.github.com/users/mruwek/received_events","type":"User","site_admin":false},"body":"This is still a work in progress.\r\n\r\nRight now after execution of each command backup is saved. With `topydo undo` it is possible to revert  **todo.txt** and **done.txt** to **latest** saved version.\r\n\r\nThings TODO:\r\n\r\n- [ ] Properly handle archive file\r\n- [ ] Limit number of saved backups\r\n- [ ] Clean backup after successful execution of `undo`\r\n- [ ] Give some meaningful output\r\n- [ ] Docstrings\r\n- [ ] Synopsis\r\n- [ ] More tests","created_at":"2015-06-12T18:34:10Z","updated_at":"2015-06-12T22:09:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45da46dcf221876a5e334467a5353c3e04d85ed9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bram85/topydo/pulls/47/commits","review_comments_url":"https://api.github.com/repos/bram85/topydo/pulls/47/comments","review_comment_url":"https://api.github.com/repos/bram85/topydo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bram85/topydo/issues/47/comments","statuses_url":"https://api.github.com/repos/bram85/topydo/statuses/2b20424508784e6d18995cc65da21130d7f6f149","head":{"label":"mruwek:undo","ref":"undo","sha":"2b20424508784e6d18995cc65da21130d7f6f149","user":{"login":"mruwek","id":500710,"avatar_url":"https://avatars.githubusercontent.com/u/500710?v=3","gravatar_id":"","url":"https://api.github.com/users/mruwek","html_url":"https://github.com/mruwek","followers_url":"https://api.github.com/users/mruwek/followers","following_url":"https://api.github.com/users/mruwek/following{/other_user}","gists_url":"https://api.github.com/users/mruwek/gists{/gist_id}","starred_url":"https://api.github.com/users/mruwek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mruwek/subscriptions","organizations_url":"https://api.github.com/users/mruwek/orgs","repos_url":"https://api.github.com/users/mruwek/repos","events_url":"https://api.github.com/users/mruwek/events{/privacy}","received_events_url":"https://api.github.com/users/mruwek/received_events","type":"User","site_admin":false},"repo":{"id":28913515,"name":"topydo","full_name":"mruwek/topydo","owner":{"login":"mruwek","id":500710,"avatar_url":"https://avatars.githubusercontent.com/u/500710?v=3","gravatar_id":"","url":"https://api.github.com/users/mruwek","html_url":"https://github.com/mruwek","followers_url":"https://api.github.com/users/mruwek/followers","following_url":"https://api.github.com/users/mruwek/following{/other_user}","gists_url":"https://api.github.com/users/mruwek/gists{/gist_id}","starred_url":"https://api.github.com/users/mruwek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mruwek/subscriptions","organizations_url":"https://api.github.com/users/mruwek/orgs","repos_url":"https://api.github.com/users/mruwek/repos","events_url":"https://api.github.com/users/mruwek/events{/privacy}","received_events_url":"https://api.github.com/users/mruwek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mruwek/topydo","description":"A command-line todo list application based on the todo.txt format.","fork":true,"url":"https://api.github.com/repos/mruwek/topydo","forks_url":"https://api.github.com/repos/mruwek/topydo/forks","keys_url":"https://api.github.com/repos/mruwek/topydo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mruwek/topydo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mruwek/topydo/teams","hooks_url":"https://api.github.com/repos/mruwek/topydo/hooks","issue_events_url":"https://api.github.com/repos/mruwek/topydo/issues/events{/number}","events_url":"https://api.github.com/repos/mruwek/topydo/events","assignees_url":"https://api.github.com/repos/mruwek/topydo/assignees{/user}","branches_url":"https://api.github.com/repos/mruwek/topydo/branches{/branch}","tags_url":"https://api.github.com/repos/mruwek/topydo/tags","blobs_url":"https://api.github.com/repos/mruwek/topydo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mruwek/topydo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mruwek/topydo/git/refs{/sha}","trees_url":"https://api.github.com/repos/mruwek/topydo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mruwek/topydo/statuses/{sha}","languages_url":"https://api.github.com/repos/mruwek/topydo/languages","stargazers_url":"https://api.github.com/repos/mruwek/topydo/stargazers","contributors_url":"https://api.github.com/repos/mruwek/topydo/contributors","subscribers_url":"https://api.github.com/repos/mruwek/topydo/subscribers","subscription_url":"https://api.github.com/repos/mruwek/topydo/subscription","commits_url":"https://api.github.com/repos/mruwek/topydo/commits{/sha}","git_commits_url":"https://api.github.com/repos/mruwek/topydo/git/commits{/sha}","comments_url":"https://api.github.com/repos/mruwek/topydo/comments{/number}","issue_comment_url":"https://api.github.com/repos/mruwek/topydo/issues/comments{/number}","contents_url":"https://api.github.com/repos/mruwek/topydo/contents/{+path}","compare_url":"https://api.github.com/repos/mruwek/topydo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mruwek/topydo/merges","archive_url":"https://api.github.com/repos/mruwek/topydo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mruwek/topydo/downloads","issues_url":"https://api.github.com/repos/mruwek/topydo/issues{/number}","pulls_url":"https://api.github.com/repos/mruwek/topydo/pulls{/number}","milestones_url":"https://api.github.com/repos/mruwek/topydo/milestones{/number}","notifications_url":"https://api.github.com/repos/mruwek/topydo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mruwek/topydo/labels{/name}","releases_url":"https://api.github.com/repos/mruwek/topydo/releases{/id}","created_at":"2015-01-07T12:27:57Z","updated_at":"2015-02-07T11:40:50Z","pushed_at":"2015-06-12T18:38:42Z","git_url":"git://github.com/mruwek/topydo.git","ssh_url":"git@github.com:mruwek/topydo.git","clone_url":"https://github.com/mruwek/topydo.git","svn_url":"https://github.com/mruwek/topydo","homepage":"","size":1015,"stargazers_count":0,"watchers_count":0,"language":"Python","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":0,"default_branch":"stable"}},"base":{"label":"bram85:master","ref":"master","sha":"f60572d250c615787dfc3be67416cc049e2a3b13","user":{"login":"bram85","id":63248,"avatar_url":"https://avatars.githubusercontent.com/u/63248?v=3","gravatar_id":"","url":"https://api.github.com/users/bram85","html_url":"https://github.com/bram85","followers_url":"https://api.github.com/users/bram85/followers","following_url":"https://api.github.com/users/bram85/following{/other_user}","gists_url":"https://api.github.com/users/bram85/gists{/gist_id}","starred_url":"https://api.github.com/users/bram85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bram85/subscriptions","organizations_url":"https://api.github.com/users/bram85/orgs","repos_url":"https://api.github.com/users/bram85/repos","events_url":"https://api.github.com/users/bram85/events{/privacy}","received_events_url":"https://api.github.com/users/bram85/received_events","type":"User","site_admin":false},"repo":{"id":25428376,"name":"topydo","full_name":"bram85/topydo","owner":{"login":"bram85","id":63248,"avatar_url":"https://avatars.githubusercontent.com/u/63248?v=3","gravatar_id":"","url":"https://api.github.com/users/bram85","html_url":"https://github.com/bram85","followers_url":"https://api.github.com/users/bram85/followers","following_url":"https://api.github.com/users/bram85/following{/other_user}","gists_url":"https://api.github.com/users/bram85/gists{/gist_id}","starred_url":"https://api.github.com/users/bram85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bram85/subscriptions","organizations_url":"https://api.github.com/users/bram85/orgs","repos_url":"https://api.github.com/users/bram85/repos","events_url":"https://api.github.com/users/bram85/events{/privacy}","received_events_url":"https://api.github.com/users/bram85/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bram85/topydo","description":"A command-line todo list application using the todo.txt format.","fork":false,"url":"https://api.github.com/repos/bram85/topydo","forks_url":"https://api.github.com/repos/bram85/topydo/forks","keys_url":"https://api.github.com/repos/bram85/topydo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bram85/topydo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bram85/topydo/teams","hooks_url":"https://api.github.com/repos/bram85/topydo/hooks","issue_events_url":"https://api.github.com/repos/bram85/topydo/issues/events{/number}","events_url":"https://api.github.com/repos/bram85/topydo/events","assignees_url":"https://api.github.com/repos/bram85/topydo/assignees{/user}","branches_url":"https://api.github.com/repos/bram85/topydo/branches{/branch}","tags_url":"https://api.github.com/repos/bram85/topydo/tags","blobs_url":"https://api.github.com/repos/bram85/topydo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bram85/topydo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bram85/topydo/git/refs{/sha}","trees_url":"https://api.github.com/repos/bram85/topydo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bram85/topydo/statuses/{sha}","languages_url":"https://api.github.com/repos/bram85/topydo/languages","stargazers_url":"https://api.github.com/repos/bram85/topydo/stargazers","contributors_url":"https://api.github.com/repos/bram85/topydo/contributors","subscribers_url":"https://api.github.com/repos/bram85/topydo/subscribers","subscription_url":"https://api.github.com/repos/bram85/topydo/subscription","commits_url":"https://api.github.com/repos/bram85/topydo/commits{/sha}","git_commits_url":"https://api.github.com/repos/bram85/topydo/git/commits{/sha}","comments_url":"https://api.github.com/repos/bram85/topydo/comments{/number}","issue_comment_url":"https://api.github.com/repos/bram85/topydo/issues/comments{/number}","contents_url":"https://api.github.com/repos/bram85/topydo/contents/{+path}","compare_url":"https://api.github.com/repos/bram85/topydo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bram85/topydo/merges","archive_url":"https://api.github.com/repos/bram85/topydo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bram85/topydo/downloads","issues_url":"https://api.github.com/repos/bram85/topydo/issues{/number}","pulls_url":"https://api.github.com/repos/bram85/topydo/pulls{/number}","milestones_url":"https://api.github.com/repos/bram85/topydo/milestones{/number}","notifications_url":"https://api.github.com/repos/bram85/topydo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bram85/topydo/labels{/name}","releases_url":"https://api.github.com/repos/bram85/topydo/releases{/id}","created_at":"2014-10-19T13:49:43Z","updated_at":"2015-06-09T20:31:56Z","pushed_at":"2015-06-12T18:38:42Z","git_url":"git://github.com/bram85/topydo.git","ssh_url":"git@github.com:bram85/topydo.git","clone_url":"https://github.com/bram85/topydo.git","svn_url":"https://github.com/bram85/topydo","homepage":"","size":1868,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":6,"forks":4,"open_issues":6,"watchers":11,"default_branch":"stable"}},"_links":{"self":{"href":"https://api.github.com/repos/bram85/topydo/pulls/47"},"html":{"href":"https://github.com/bram85/topydo/pull/47"},"issue":{"href":"https://api.github.com/repos/bram85/topydo/issues/47"},"comments":{"href":"https://api.github.com/repos/bram85/topydo/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/bram85/topydo/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/bram85/topydo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bram85/topydo/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/bram85/topydo/statuses/2b20424508784e6d18995cc65da21130d7f6f149"}}}}