{"action":"created","comment":{"url":"https://api.github.com/repos/borgbackup/borg/pulls/comments/45535673","id":45535673,"diff_hunk":"@@ -669,6 +669,28 @@ def test_create_dry_run(self):\n         manifest, key = Manifest.load(repository)\n         self.assert_equal(len(manifest.archives), 0)\n \n+    def test_progress(self):\n+        self.create_regular_file('file1', size=1024 * 80)\n+        self.cmd('init', self.repository_location)\n+        # without a terminal, no progress expected\n+        output = self.cmd('create', self.repository_location + '::test1', 'input', fork=False)\n+        self.assert_not_in(\"\\r\", output)\n+        # with a terminal, progress expected\n+        output = self.cmd('create', self.repository_location + '::test2', 'input', fork=True)\n+        self.assert_in(\"\\r\", output)\n+        # without a terminal, progress forced on\n+        output = self.cmd('create', '--progress', self.repository_location + '::test3', 'input', fork=False)\n+        self.assert_in(\"\\r\", output)\n+        # with a terminal, progress forced on\n+        output = self.cmd('create', '--progress', self.repository_location + '::test4', 'input', fork=True)\n+        self.assert_in(\"\\r\", output)\n+        # without a termainl, progress forced off","path":"borg/testsuite/archiver.py","position":19,"original_position":19,"commit_id":"a6f8436ceb723e5d86b0abe47d86f0d1a1e687d5","original_commit_id":"a6f8436ceb723e5d86b0abe47d86f0d1a1e687d5","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":"typo","created_at":"2015-11-21T00:23:48Z","updated_at":"2015-11-21T00:23:48Z","html_url":"https://github.com/borgbackup/borg/pull/437#discussion_r45535673","pull_request_url":"https://api.github.com/repos/borgbackup/borg/pulls/437","_links":{"self":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/comments/45535673"},"html":{"href":"https://github.com/borgbackup/borg/pull/437#discussion_r45535673"},"pull_request":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/437"}}},"pull_request":{"url":"https://api.github.com/repos/borgbackup/borg/pulls/437","id":51401441,"html_url":"https://github.com/borgbackup/borg/pull/437","diff_url":"https://github.com/borgbackup/borg/pull/437.diff","patch_url":"https://github.com/borgbackup/borg/pull/437.patch","issue_url":"https://api.github.com/repos/borgbackup/borg/issues/437","number":437,"state":"open","locked":false,"title":"fix --no-progress","user":{"login":"anarcat","id":796623,"avatar_url":"https://avatars.githubusercontent.com/u/796623?v=3","gravatar_id":"","url":"https://api.github.com/users/anarcat","html_url":"https://github.com/anarcat","followers_url":"https://api.github.com/users/anarcat/followers","following_url":"https://api.github.com/users/anarcat/following{/other_user}","gists_url":"https://api.github.com/users/anarcat/gists{/gist_id}","starred_url":"https://api.github.com/users/anarcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anarcat/subscriptions","organizations_url":"https://api.github.com/users/anarcat/orgs","repos_url":"https://api.github.com/users/anarcat/repos","events_url":"https://api.github.com/users/anarcat/events{/privacy}","received_events_url":"https://api.github.com/users/anarcat/received_events","type":"User","site_admin":false},"body":"this adds unit tests for, and fixes #436.","created_at":"2015-11-20T20:03:05Z","updated_at":"2015-11-21T00:23:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2ba755549f8a79615fdb5f7167026edfdebbdb3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/borgbackup/borg/pulls/437/commits","review_comments_url":"https://api.github.com/repos/borgbackup/borg/pulls/437/comments","review_comment_url":"https://api.github.com/repos/borgbackup/borg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/437/comments","statuses_url":"https://api.github.com/repos/borgbackup/borg/statuses/a6f8436ceb723e5d86b0abe47d86f0d1a1e687d5","head":{"label":"anarcat:no-progress","ref":"no-progress","sha":"a6f8436ceb723e5d86b0abe47d86f0d1a1e687d5","user":{"login":"anarcat","id":796623,"avatar_url":"https://avatars.githubusercontent.com/u/796623?v=3","gravatar_id":"","url":"https://api.github.com/users/anarcat","html_url":"https://github.com/anarcat","followers_url":"https://api.github.com/users/anarcat/followers","following_url":"https://api.github.com/users/anarcat/following{/other_user}","gists_url":"https://api.github.com/users/anarcat/gists{/gist_id}","starred_url":"https://api.github.com/users/anarcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anarcat/subscriptions","organizations_url":"https://api.github.com/users/anarcat/orgs","repos_url":"https://api.github.com/users/anarcat/repos","events_url":"https://api.github.com/users/anarcat/events{/privacy}","received_events_url":"https://api.github.com/users/anarcat/received_events","type":"User","site_admin":false},"repo":{"id":36046474,"name":"borg","full_name":"anarcat/borg","owner":{"login":"anarcat","id":796623,"avatar_url":"https://avatars.githubusercontent.com/u/796623?v=3","gravatar_id":"","url":"https://api.github.com/users/anarcat","html_url":"https://github.com/anarcat","followers_url":"https://api.github.com/users/anarcat/followers","following_url":"https://api.github.com/users/anarcat/following{/other_user}","gists_url":"https://api.github.com/users/anarcat/gists{/gist_id}","starred_url":"https://api.github.com/users/anarcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anarcat/subscriptions","organizations_url":"https://api.github.com/users/anarcat/orgs","repos_url":"https://api.github.com/users/anarcat/repos","events_url":"https://api.github.com/users/anarcat/events{/privacy}","received_events_url":"https://api.github.com/users/anarcat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anarcat/borg","description":"Deduplicating backup program with compression and authenticated encryption","fork":true,"url":"https://api.github.com/repos/anarcat/borg","forks_url":"https://api.github.com/repos/anarcat/borg/forks","keys_url":"https://api.github.com/repos/anarcat/borg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anarcat/borg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anarcat/borg/teams","hooks_url":"https://api.github.com/repos/anarcat/borg/hooks","issue_events_url":"https://api.github.com/repos/anarcat/borg/issues/events{/number}","events_url":"https://api.github.com/repos/anarcat/borg/events","assignees_url":"https://api.github.com/repos/anarcat/borg/assignees{/user}","branches_url":"https://api.github.com/repos/anarcat/borg/branches{/branch}","tags_url":"https://api.github.com/repos/anarcat/borg/tags","blobs_url":"https://api.github.com/repos/anarcat/borg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anarcat/borg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anarcat/borg/git/refs{/sha}","trees_url":"https://api.github.com/repos/anarcat/borg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anarcat/borg/statuses/{sha}","languages_url":"https://api.github.com/repos/anarcat/borg/languages","stargazers_url":"https://api.github.com/repos/anarcat/borg/stargazers","contributors_url":"https://api.github.com/repos/anarcat/borg/contributors","subscribers_url":"https://api.github.com/repos/anarcat/borg/subscribers","subscription_url":"https://api.github.com/repos/anarcat/borg/subscription","commits_url":"https://api.github.com/repos/anarcat/borg/commits{/sha}","git_commits_url":"https://api.github.com/repos/anarcat/borg/git/commits{/sha}","comments_url":"https://api.github.com/repos/anarcat/borg/comments{/number}","issue_comment_url":"https://api.github.com/repos/anarcat/borg/issues/comments{/number}","contents_url":"https://api.github.com/repos/anarcat/borg/contents/{+path}","compare_url":"https://api.github.com/repos/anarcat/borg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anarcat/borg/merges","archive_url":"https://api.github.com/repos/anarcat/borg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anarcat/borg/downloads","issues_url":"https://api.github.com/repos/anarcat/borg/issues{/number}","pulls_url":"https://api.github.com/repos/anarcat/borg/pulls{/number}","milestones_url":"https://api.github.com/repos/anarcat/borg/milestones{/number}","notifications_url":"https://api.github.com/repos/anarcat/borg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anarcat/borg/labels{/name}","releases_url":"https://api.github.com/repos/anarcat/borg/releases{/id}","created_at":"2015-05-22T01:49:56Z","updated_at":"2015-10-17T06:13:27Z","pushed_at":"2015-11-20T20:06:27Z","git_url":"git://github.com/anarcat/borg.git","ssh_url":"git@github.com:anarcat/borg.git","clone_url":"https://github.com/anarcat/borg.git","svn_url":"https://github.com/anarcat/borg","homepage":"https://borgbackup.github.io/","size":2354,"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":"docs-setup-refactor"}},"base":{"label":"borgbackup:master","ref":"master","sha":"a7eb83efa524e652b04e00861c9c007ad665f5eb","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}","created_at":"2015-05-12T23:10:47Z","updated_at":"2015-11-20T21:30:40Z","pushed_at":"2015-11-21T00:15:19Z","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.github.io/","size":2579,"stargazers_count":351,"watchers_count":351,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":102,"forks":34,"open_issues":102,"watchers":351,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/437"},"html":{"href":"https://github.com/borgbackup/borg/pull/437"},"issue":{"href":"https://api.github.com/repos/borgbackup/borg/issues/437"},"comments":{"href":"https://api.github.com/repos/borgbackup/borg/issues/437/comments"},"review_comments":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/437/comments"},"review_comment":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/437/commits"},"statuses":{"href":"https://api.github.com/repos/borgbackup/borg/statuses/a6f8436ceb723e5d86b0abe47d86f0d1a1e687d5"}}}}