{"action":"created","comment":{"url":"https://api.github.com/repos/reinout/checkoutmanager/pulls/comments/39044441","id":39044441,"diff_hunk":"@@ -116,6 +116,12 @@ def directories(self, group=None):\n                 result.append(dirinfoclass(directory, url))\n         return sorted(result)\n \n+    def directory_from_url(self, url):\n+        return [x for x in self.directories() if x.url == url][0]","path":"checkoutmanager/config.py","position":5,"original_position":5,"commit_id":"5dd0c1227fde8e12f5142918331e2f38205c40cc","original_commit_id":"5dd0c1227fde8e12f5142918331e2f38205c40cc","user":{"login":"reinout","id":121433,"avatar_url":"https://avatars.githubusercontent.com/u/121433?v=3","gravatar_id":"","url":"https://api.github.com/users/reinout","html_url":"https://github.com/reinout","followers_url":"https://api.github.com/users/reinout/followers","following_url":"https://api.github.com/users/reinout/following{/other_user}","gists_url":"https://api.github.com/users/reinout/gists{/gist_id}","starred_url":"https://api.github.com/users/reinout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reinout/subscriptions","organizations_url":"https://api.github.com/users/reinout/orgs","repos_url":"https://api.github.com/users/reinout/repos","events_url":"https://api.github.com/users/reinout/events{/privacy}","received_events_url":"https://api.github.com/users/reinout/received_events","type":"User","site_admin":false},"body":"I looked at the travis test results and it is indeed an IndexError that's the problem there.","created_at":"2015-09-09T13:54:21Z","updated_at":"2015-09-09T13:54:21Z","html_url":"https://github.com/reinout/checkoutmanager/pull/13#discussion_r39044441","pull_request_url":"https://api.github.com/repos/reinout/checkoutmanager/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/reinout/checkoutmanager/pulls/comments/39044441"},"html":{"href":"https://github.com/reinout/checkoutmanager/pull/13#discussion_r39044441"},"pull_request":{"href":"https://api.github.com/repos/reinout/checkoutmanager/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/reinout/checkoutmanager/pulls/13","id":44504264,"html_url":"https://github.com/reinout/checkoutmanager/pull/13","diff_url":"https://github.com/reinout/checkoutmanager/pull/13.diff","patch_url":"https://github.com/reinout/checkoutmanager/pull/13.patch","issue_url":"https://api.github.com/repos/reinout/checkoutmanager/issues/13","number":13,"state":"open","locked":false,"title":"Basic hooks","user":{"login":"chintal","id":226507,"avatar_url":"https://avatars.githubusercontent.com/u/226507?v=3","gravatar_id":"","url":"https://api.github.com/users/chintal","html_url":"https://github.com/chintal","followers_url":"https://api.github.com/users/chintal/followers","following_url":"https://api.github.com/users/chintal/following{/other_user}","gists_url":"https://api.github.com/users/chintal/gists{/gist_id}","starred_url":"https://api.github.com/users/chintal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chintal/subscriptions","organizations_url":"https://api.github.com/users/chintal/orgs","repos_url":"https://api.github.com/users/chintal/repos","events_url":"https://api.github.com/users/chintal/events{/privacy}","received_events_url":"https://api.github.com/users/chintal/received_events","type":"User","site_admin":false},"body":"Added hooks to obtain dirinfo from config given a url or directory path, and run_one() to execute actions against a single DirInfo.\r\n\r\nFor some reason the test for directory_from_path doesn't run. I can't seem to figure out why. It works for me though : \r\n\r\n    >>> c.directory_from_path('/home/chintal/quazar/svn/ARM-Prog')\r\n    <DirInfo (svn) for /home/chintal/quazar/svn/ARM-Prog>\r\n","created_at":"2015-09-09T02:21:22Z","updated_at":"2015-09-09T13:54:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b5fb696b98f2725b8c05ea4ea662fca96367265","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/reinout/checkoutmanager/pulls/13/commits","review_comments_url":"https://api.github.com/repos/reinout/checkoutmanager/pulls/13/comments","review_comment_url":"https://api.github.com/repos/reinout/checkoutmanager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reinout/checkoutmanager/issues/13/comments","statuses_url":"https://api.github.com/repos/reinout/checkoutmanager/statuses/5dd0c1227fde8e12f5142918331e2f38205c40cc","head":{"label":"chintal:basic-hooks","ref":"basic-hooks","sha":"5dd0c1227fde8e12f5142918331e2f38205c40cc","user":{"login":"chintal","id":226507,"avatar_url":"https://avatars.githubusercontent.com/u/226507?v=3","gravatar_id":"","url":"https://api.github.com/users/chintal","html_url":"https://github.com/chintal","followers_url":"https://api.github.com/users/chintal/followers","following_url":"https://api.github.com/users/chintal/following{/other_user}","gists_url":"https://api.github.com/users/chintal/gists{/gist_id}","starred_url":"https://api.github.com/users/chintal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chintal/subscriptions","organizations_url":"https://api.github.com/users/chintal/orgs","repos_url":"https://api.github.com/users/chintal/repos","events_url":"https://api.github.com/users/chintal/events{/privacy}","received_events_url":"https://api.github.com/users/chintal/received_events","type":"User","site_admin":false},"repo":{"id":42060655,"name":"checkoutmanager","full_name":"chintal/checkoutmanager","owner":{"login":"chintal","id":226507,"avatar_url":"https://avatars.githubusercontent.com/u/226507?v=3","gravatar_id":"","url":"https://api.github.com/users/chintal","html_url":"https://github.com/chintal","followers_url":"https://api.github.com/users/chintal/followers","following_url":"https://api.github.com/users/chintal/following{/other_user}","gists_url":"https://api.github.com/users/chintal/gists{/gist_id}","starred_url":"https://api.github.com/users/chintal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chintal/subscriptions","organizations_url":"https://api.github.com/users/chintal/orgs","repos_url":"https://api.github.com/users/chintal/repos","events_url":"https://api.github.com/users/chintal/events{/privacy}","received_events_url":"https://api.github.com/users/chintal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chintal/checkoutmanager","description":"All your checkouts in one config file, one command to update/push/status/whatever them.","fork":true,"url":"https://api.github.com/repos/chintal/checkoutmanager","forks_url":"https://api.github.com/repos/chintal/checkoutmanager/forks","keys_url":"https://api.github.com/repos/chintal/checkoutmanager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chintal/checkoutmanager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chintal/checkoutmanager/teams","hooks_url":"https://api.github.com/repos/chintal/checkoutmanager/hooks","issue_events_url":"https://api.github.com/repos/chintal/checkoutmanager/issues/events{/number}","events_url":"https://api.github.com/repos/chintal/checkoutmanager/events","assignees_url":"https://api.github.com/repos/chintal/checkoutmanager/assignees{/user}","branches_url":"https://api.github.com/repos/chintal/checkoutmanager/branches{/branch}","tags_url":"https://api.github.com/repos/chintal/checkoutmanager/tags","blobs_url":"https://api.github.com/repos/chintal/checkoutmanager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chintal/checkoutmanager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chintal/checkoutmanager/git/refs{/sha}","trees_url":"https://api.github.com/repos/chintal/checkoutmanager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chintal/checkoutmanager/statuses/{sha}","languages_url":"https://api.github.com/repos/chintal/checkoutmanager/languages","stargazers_url":"https://api.github.com/repos/chintal/checkoutmanager/stargazers","contributors_url":"https://api.github.com/repos/chintal/checkoutmanager/contributors","subscribers_url":"https://api.github.com/repos/chintal/checkoutmanager/subscribers","subscription_url":"https://api.github.com/repos/chintal/checkoutmanager/subscription","commits_url":"https://api.github.com/repos/chintal/checkoutmanager/commits{/sha}","git_commits_url":"https://api.github.com/repos/chintal/checkoutmanager/git/commits{/sha}","comments_url":"https://api.github.com/repos/chintal/checkoutmanager/comments{/number}","issue_comment_url":"https://api.github.com/repos/chintal/checkoutmanager/issues/comments{/number}","contents_url":"https://api.github.com/repos/chintal/checkoutmanager/contents/{+path}","compare_url":"https://api.github.com/repos/chintal/checkoutmanager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chintal/checkoutmanager/merges","archive_url":"https://api.github.com/repos/chintal/checkoutmanager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chintal/checkoutmanager/downloads","issues_url":"https://api.github.com/repos/chintal/checkoutmanager/issues{/number}","pulls_url":"https://api.github.com/repos/chintal/checkoutmanager/pulls{/number}","milestones_url":"https://api.github.com/repos/chintal/checkoutmanager/milestones{/number}","notifications_url":"https://api.github.com/repos/chintal/checkoutmanager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chintal/checkoutmanager/labels{/name}","releases_url":"https://api.github.com/repos/chintal/checkoutmanager/releases{/id}","created_at":"2015-09-07T15:30:15Z","updated_at":"2015-09-07T15:30:15Z","pushed_at":"2015-09-09T03:03:57Z","git_url":"git://github.com/chintal/checkoutmanager.git","ssh_url":"git@github.com:chintal/checkoutmanager.git","clone_url":"https://github.com/chintal/checkoutmanager.git","svn_url":"https://github.com/chintal/checkoutmanager","homepage":"http://pypi.python.org/pypi/checkoutmanager","size":170,"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":"master"}},"base":{"label":"reinout:master","ref":"master","sha":"ab50aaad0e4344f687bc17f36dca8f4c6655ed84","user":{"login":"reinout","id":121433,"avatar_url":"https://avatars.githubusercontent.com/u/121433?v=3","gravatar_id":"","url":"https://api.github.com/users/reinout","html_url":"https://github.com/reinout","followers_url":"https://api.github.com/users/reinout/followers","following_url":"https://api.github.com/users/reinout/following{/other_user}","gists_url":"https://api.github.com/users/reinout/gists{/gist_id}","starred_url":"https://api.github.com/users/reinout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reinout/subscriptions","organizations_url":"https://api.github.com/users/reinout/orgs","repos_url":"https://api.github.com/users/reinout/repos","events_url":"https://api.github.com/users/reinout/events{/privacy}","received_events_url":"https://api.github.com/users/reinout/received_events","type":"User","site_admin":false},"repo":{"id":41141709,"name":"checkoutmanager","full_name":"reinout/checkoutmanager","owner":{"login":"reinout","id":121433,"avatar_url":"https://avatars.githubusercontent.com/u/121433?v=3","gravatar_id":"","url":"https://api.github.com/users/reinout","html_url":"https://github.com/reinout","followers_url":"https://api.github.com/users/reinout/followers","following_url":"https://api.github.com/users/reinout/following{/other_user}","gists_url":"https://api.github.com/users/reinout/gists{/gist_id}","starred_url":"https://api.github.com/users/reinout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reinout/subscriptions","organizations_url":"https://api.github.com/users/reinout/orgs","repos_url":"https://api.github.com/users/reinout/repos","events_url":"https://api.github.com/users/reinout/events{/privacy}","received_events_url":"https://api.github.com/users/reinout/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/reinout/checkoutmanager","description":"All your checkouts in one config file, one command to update/push/status/whatever them.","fork":false,"url":"https://api.github.com/repos/reinout/checkoutmanager","forks_url":"https://api.github.com/repos/reinout/checkoutmanager/forks","keys_url":"https://api.github.com/repos/reinout/checkoutmanager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reinout/checkoutmanager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reinout/checkoutmanager/teams","hooks_url":"https://api.github.com/repos/reinout/checkoutmanager/hooks","issue_events_url":"https://api.github.com/repos/reinout/checkoutmanager/issues/events{/number}","events_url":"https://api.github.com/repos/reinout/checkoutmanager/events","assignees_url":"https://api.github.com/repos/reinout/checkoutmanager/assignees{/user}","branches_url":"https://api.github.com/repos/reinout/checkoutmanager/branches{/branch}","tags_url":"https://api.github.com/repos/reinout/checkoutmanager/tags","blobs_url":"https://api.github.com/repos/reinout/checkoutmanager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reinout/checkoutmanager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reinout/checkoutmanager/git/refs{/sha}","trees_url":"https://api.github.com/repos/reinout/checkoutmanager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reinout/checkoutmanager/statuses/{sha}","languages_url":"https://api.github.com/repos/reinout/checkoutmanager/languages","stargazers_url":"https://api.github.com/repos/reinout/checkoutmanager/stargazers","contributors_url":"https://api.github.com/repos/reinout/checkoutmanager/contributors","subscribers_url":"https://api.github.com/repos/reinout/checkoutmanager/subscribers","subscription_url":"https://api.github.com/repos/reinout/checkoutmanager/subscription","commits_url":"https://api.github.com/repos/reinout/checkoutmanager/commits{/sha}","git_commits_url":"https://api.github.com/repos/reinout/checkoutmanager/git/commits{/sha}","comments_url":"https://api.github.com/repos/reinout/checkoutmanager/comments{/number}","issue_comment_url":"https://api.github.com/repos/reinout/checkoutmanager/issues/comments{/number}","contents_url":"https://api.github.com/repos/reinout/checkoutmanager/contents/{+path}","compare_url":"https://api.github.com/repos/reinout/checkoutmanager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reinout/checkoutmanager/merges","archive_url":"https://api.github.com/repos/reinout/checkoutmanager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reinout/checkoutmanager/downloads","issues_url":"https://api.github.com/repos/reinout/checkoutmanager/issues{/number}","pulls_url":"https://api.github.com/repos/reinout/checkoutmanager/pulls{/number}","milestones_url":"https://api.github.com/repos/reinout/checkoutmanager/milestones{/number}","notifications_url":"https://api.github.com/repos/reinout/checkoutmanager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reinout/checkoutmanager/labels{/name}","releases_url":"https://api.github.com/repos/reinout/checkoutmanager/releases{/id}","created_at":"2015-08-21T07:23:19Z","updated_at":"2015-08-27T18:16:17Z","pushed_at":"2015-09-09T03:12:42Z","git_url":"git://github.com/reinout/checkoutmanager.git","ssh_url":"git@github.com:reinout/checkoutmanager.git","clone_url":"https://github.com/reinout/checkoutmanager.git","svn_url":"https://github.com/reinout/checkoutmanager","homepage":"http://pypi.python.org/pypi/checkoutmanager","size":328,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reinout/checkoutmanager/pulls/13"},"html":{"href":"https://github.com/reinout/checkoutmanager/pull/13"},"issue":{"href":"https://api.github.com/repos/reinout/checkoutmanager/issues/13"},"comments":{"href":"https://api.github.com/repos/reinout/checkoutmanager/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/reinout/checkoutmanager/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/reinout/checkoutmanager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reinout/checkoutmanager/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/reinout/checkoutmanager/statuses/5dd0c1227fde8e12f5142918331e2f38205c40cc"}}}}