{"action":"created","comment":{"url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls/comments/34627663","id":34627663,"diff_hunk":"@@ -0,0 +1,198 @@\n+\n+import os, json\n+from cStringIO import StringIO\n+from twisted.python import usage\n+\n+from .common import BaseOptions, BasedirOptions, get_aliases\n+from .cli import MakeDirectoryOptions, ListOptions, LnOptions\n+import tahoe_ls, tahoe_mv\n+from allmydata.util import fileutil\n+\n+\n+INVITE_SEPERATOR = \"~\"\n+\n+class CreateOptions(BasedirOptions):\n+    nickname = None\n+    localdir = None\n+    synopsis = \"MAGIC_ALIAS: [NICKNAME LOCALDIR]\"\n+    def parseArgs(self, alias, nickname=None, localdir=None):\n+        BasedirOptions.parseArgs(self)\n+        self.alias = alias\n+        self.nickname = nickname\n+        self.localdir = localdir\n+        if self.nickname and not self.localdir:\n+            raise usage.UsageError(\"must provide both\")","path":"src/allmydata/scripts/magic_folder_cli.py","position":24,"original_position":24,"commit_id":"b04f8547cbc6d0f84d953c5eaeba1d35fad1afef","original_commit_id":"b04f8547cbc6d0f84d953c5eaeba1d35fad1afef","user":{"login":"daira","id":643204,"avatar_url":"https://avatars.githubusercontent.com/u/643204?v=3","gravatar_id":"","url":"https://api.github.com/users/daira","html_url":"https://github.com/daira","followers_url":"https://api.github.com/users/daira/followers","following_url":"https://api.github.com/users/daira/following{/other_user}","gists_url":"https://api.github.com/users/daira/gists{/gist_id}","starred_url":"https://api.github.com/users/daira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daira/subscriptions","organizations_url":"https://api.github.com/users/daira/orgs","repos_url":"https://api.github.com/users/daira/repos","events_url":"https://api.github.com/users/daira/events{/privacy}","received_events_url":"https://api.github.com/users/daira/received_events","type":"User","site_admin":false},"body":"Nicer error message please.","created_at":"2015-07-14T22:27:11Z","updated_at":"2015-07-14T22:27:11Z","html_url":"https://github.com/tahoe-lafs/tahoe-lafs/pull/174#discussion_r34627663","pull_request_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls/174","_links":{"self":{"href":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls/comments/34627663"},"html":{"href":"https://github.com/tahoe-lafs/tahoe-lafs/pull/174#discussion_r34627663"},"pull_request":{"href":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls/174"}}},"pull_request":{"url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls/174","id":39631846,"html_url":"https://github.com/tahoe-lafs/tahoe-lafs/pull/174","diff_url":"https://github.com/tahoe-lafs/tahoe-lafs/pull/174.diff","patch_url":"https://github.com/tahoe-lafs/tahoe-lafs/pull/174.patch","issue_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/issues/174","number":174,"state":"open","locked":false,"title":"DO NOT COMMIT THIS 1710.local deletion water dragon.1.test alice and bob.1","user":{"login":"daira","id":643204,"avatar_url":"https://avatars.githubusercontent.com/u/643204?v=3","gravatar_id":"","url":"https://api.github.com/users/daira","html_url":"https://github.com/daira","followers_url":"https://api.github.com/users/daira/followers","following_url":"https://api.github.com/users/daira/following{/other_user}","gists_url":"https://api.github.com/users/daira/gists{/gist_id}","starred_url":"https://api.github.com/users/daira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daira/subscriptions","organizations_url":"https://api.github.com/users/daira/orgs","repos_url":"https://api.github.com/users/daira/repos","events_url":"https://api.github.com/users/daira/events{/privacy}","received_events_url":"https://api.github.com/users/daira/received_events","type":"User","site_admin":false},"body":"DO NOT COMMIT THIS","created_at":"2015-07-09T21:44:56Z","updated_at":"2015-07-14T22:27:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc146c57723aa30eaeaf11dce1047c64beb3f04a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls/174/commits","review_comments_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls/174/comments","review_comment_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/issues/174/comments","statuses_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/statuses/b04f8547cbc6d0f84d953c5eaeba1d35fad1afef","head":{"label":"david415:1710.local-deletion-water-dragon.1.test-alice-and-bob.1","ref":"1710.local-deletion-water-dragon.1.test-alice-and-bob.1","sha":"b04f8547cbc6d0f84d953c5eaeba1d35fad1afef","user":{"login":"david415","id":50611,"avatar_url":"https://avatars.githubusercontent.com/u/50611?v=3","gravatar_id":"","url":"https://api.github.com/users/david415","html_url":"https://github.com/david415","followers_url":"https://api.github.com/users/david415/followers","following_url":"https://api.github.com/users/david415/following{/other_user}","gists_url":"https://api.github.com/users/david415/gists{/gist_id}","starred_url":"https://api.github.com/users/david415/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david415/subscriptions","organizations_url":"https://api.github.com/users/david415/orgs","repos_url":"https://api.github.com/users/david415/repos","events_url":"https://api.github.com/users/david415/events{/privacy}","received_events_url":"https://api.github.com/users/david415/received_events","type":"User","site_admin":false},"repo":{"id":15762988,"name":"tahoe-lafs","full_name":"david415/tahoe-lafs","owner":{"login":"david415","id":50611,"avatar_url":"https://avatars.githubusercontent.com/u/50611?v=3","gravatar_id":"","url":"https://api.github.com/users/david415","html_url":"https://github.com/david415","followers_url":"https://api.github.com/users/david415/followers","following_url":"https://api.github.com/users/david415/following{/other_user}","gists_url":"https://api.github.com/users/david415/gists{/gist_id}","starred_url":"https://api.github.com/users/david415/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david415/subscriptions","organizations_url":"https://api.github.com/users/david415/orgs","repos_url":"https://api.github.com/users/david415/repos","events_url":"https://api.github.com/users/david415/events{/privacy}","received_events_url":"https://api.github.com/users/david415/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/david415/tahoe-lafs","description":"The Tahoe-LAFS decentralized secure filesystem.","fork":true,"url":"https://api.github.com/repos/david415/tahoe-lafs","forks_url":"https://api.github.com/repos/david415/tahoe-lafs/forks","keys_url":"https://api.github.com/repos/david415/tahoe-lafs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/david415/tahoe-lafs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/david415/tahoe-lafs/teams","hooks_url":"https://api.github.com/repos/david415/tahoe-lafs/hooks","issue_events_url":"https://api.github.com/repos/david415/tahoe-lafs/issues/events{/number}","events_url":"https://api.github.com/repos/david415/tahoe-lafs/events","assignees_url":"https://api.github.com/repos/david415/tahoe-lafs/assignees{/user}","branches_url":"https://api.github.com/repos/david415/tahoe-lafs/branches{/branch}","tags_url":"https://api.github.com/repos/david415/tahoe-lafs/tags","blobs_url":"https://api.github.com/repos/david415/tahoe-lafs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/david415/tahoe-lafs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/david415/tahoe-lafs/git/refs{/sha}","trees_url":"https://api.github.com/repos/david415/tahoe-lafs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/david415/tahoe-lafs/statuses/{sha}","languages_url":"https://api.github.com/repos/david415/tahoe-lafs/languages","stargazers_url":"https://api.github.com/repos/david415/tahoe-lafs/stargazers","contributors_url":"https://api.github.com/repos/david415/tahoe-lafs/contributors","subscribers_url":"https://api.github.com/repos/david415/tahoe-lafs/subscribers","subscription_url":"https://api.github.com/repos/david415/tahoe-lafs/subscription","commits_url":"https://api.github.com/repos/david415/tahoe-lafs/commits{/sha}","git_commits_url":"https://api.github.com/repos/david415/tahoe-lafs/git/commits{/sha}","comments_url":"https://api.github.com/repos/david415/tahoe-lafs/comments{/number}","issue_comment_url":"https://api.github.com/repos/david415/tahoe-lafs/issues/comments{/number}","contents_url":"https://api.github.com/repos/david415/tahoe-lafs/contents/{+path}","compare_url":"https://api.github.com/repos/david415/tahoe-lafs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/david415/tahoe-lafs/merges","archive_url":"https://api.github.com/repos/david415/tahoe-lafs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/david415/tahoe-lafs/downloads","issues_url":"https://api.github.com/repos/david415/tahoe-lafs/issues{/number}","pulls_url":"https://api.github.com/repos/david415/tahoe-lafs/pulls{/number}","milestones_url":"https://api.github.com/repos/david415/tahoe-lafs/milestones{/number}","notifications_url":"https://api.github.com/repos/david415/tahoe-lafs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/david415/tahoe-lafs/labels{/name}","releases_url":"https://api.github.com/repos/david415/tahoe-lafs/releases{/id}","created_at":"2014-01-09T09:57:23Z","updated_at":"2015-04-17T16:27:09Z","pushed_at":"2015-07-14T21:54:50Z","git_url":"git://github.com/david415/tahoe-lafs.git","ssh_url":"git@github.com:david415/tahoe-lafs.git","clone_url":"https://github.com/david415/tahoe-lafs.git","svn_url":"https://github.com/david415/tahoe-lafs","homepage":"https://tahoe-lafs.org/","size":64111,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":3,"default_branch":"tor-i2p-documentation"}},"base":{"label":"tahoe-lafs:2438.otf-objective-4.2","ref":"2438.otf-objective-4.2","sha":"480ebc2227dee6e43c4003ea6f107e1a7bfafe94","user":{"login":"tahoe-lafs","id":1156454,"avatar_url":"https://avatars.githubusercontent.com/u/1156454?v=3","gravatar_id":"","url":"https://api.github.com/users/tahoe-lafs","html_url":"https://github.com/tahoe-lafs","followers_url":"https://api.github.com/users/tahoe-lafs/followers","following_url":"https://api.github.com/users/tahoe-lafs/following{/other_user}","gists_url":"https://api.github.com/users/tahoe-lafs/gists{/gist_id}","starred_url":"https://api.github.com/users/tahoe-lafs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahoe-lafs/subscriptions","organizations_url":"https://api.github.com/users/tahoe-lafs/orgs","repos_url":"https://api.github.com/users/tahoe-lafs/repos","events_url":"https://api.github.com/users/tahoe-lafs/events{/privacy}","received_events_url":"https://api.github.com/users/tahoe-lafs/received_events","type":"Organization","site_admin":false},"repo":{"id":3007569,"name":"tahoe-lafs","full_name":"tahoe-lafs/tahoe-lafs","owner":{"login":"tahoe-lafs","id":1156454,"avatar_url":"https://avatars.githubusercontent.com/u/1156454?v=3","gravatar_id":"","url":"https://api.github.com/users/tahoe-lafs","html_url":"https://github.com/tahoe-lafs","followers_url":"https://api.github.com/users/tahoe-lafs/followers","following_url":"https://api.github.com/users/tahoe-lafs/following{/other_user}","gists_url":"https://api.github.com/users/tahoe-lafs/gists{/gist_id}","starred_url":"https://api.github.com/users/tahoe-lafs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahoe-lafs/subscriptions","organizations_url":"https://api.github.com/users/tahoe-lafs/orgs","repos_url":"https://api.github.com/users/tahoe-lafs/repos","events_url":"https://api.github.com/users/tahoe-lafs/events{/privacy}","received_events_url":"https://api.github.com/users/tahoe-lafs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tahoe-lafs/tahoe-lafs","description":"The Tahoe-LAFS decentralized secure filesystem.","fork":false,"url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs","forks_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/forks","keys_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/teams","hooks_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/hooks","issue_events_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/issues/events{/number}","events_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/events","assignees_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/assignees{/user}","branches_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/branches{/branch}","tags_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/tags","blobs_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/git/refs{/sha}","trees_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/statuses/{sha}","languages_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/languages","stargazers_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/stargazers","contributors_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/contributors","subscribers_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/subscribers","subscription_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/subscription","commits_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/commits{/sha}","git_commits_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/git/commits{/sha}","comments_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/comments{/number}","issue_comment_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/issues/comments{/number}","contents_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/contents/{+path}","compare_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/merges","archive_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/downloads","issues_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/issues{/number}","pulls_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls{/number}","milestones_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/milestones{/number}","notifications_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/labels{/name}","releases_url":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/releases{/id}","created_at":"2011-12-18T19:33:55Z","updated_at":"2015-07-14T16:02:06Z","pushed_at":"2015-07-14T21:54:52Z","git_url":"git://github.com/tahoe-lafs/tahoe-lafs.git","ssh_url":"git@github.com:tahoe-lafs/tahoe-lafs.git","clone_url":"https://github.com/tahoe-lafs/tahoe-lafs.git","svn_url":"https://github.com/tahoe-lafs/tahoe-lafs","homepage":"https://tahoe-lafs.org/","size":70376,"stargazers_count":370,"watchers_count":370,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":117,"mirror_url":null,"open_issues_count":18,"forks":117,"open_issues":18,"watchers":370,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls/174"},"html":{"href":"https://github.com/tahoe-lafs/tahoe-lafs/pull/174"},"issue":{"href":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/issues/174"},"comments":{"href":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/issues/174/comments"},"review_comments":{"href":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls/174/comments"},"review_comment":{"href":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/pulls/174/commits"},"statuses":{"href":"https://api.github.com/repos/tahoe-lafs/tahoe-lafs/statuses/b04f8547cbc6d0f84d953c5eaeba1d35fad1afef"}}}}