{"action":"created","comment":{"url":"https://api.github.com/repos/swcarpentry/hg-novice/pulls/comments/39932356","id":39932356,"diff_hunk":"@@ -0,0 +1,99 @@\n+---\n+layout: page\n+title: Version Control with Mercurial\n+subtitle: Configuring Mercurial\n+---\n+> ## Learning Objective {.objectives}\n+>\n+> * Explain what configuration steps are required the first time Mercurial\n+>   is used on a computer.\n+\n+When we use Mercurial on a computer for the first time,\n+we need to configure a few things.\n+The command\n+\n+~~~ {.bash}\n+$ hg config --edit\n+~~~\n+\n+should open a template Mercurial configuration file in an editor for you.\n+On Windows the file will likely appear in `Notepad`.\n+On OS X and Linux,\n+if your `EDITOR` environment variable is not set to something else,\n+the file will likely appear in `vi`.\n+If that doesn't make you happy,\n+prefix the command with `EDITOR=<editor-of-your-choice>`.\n+`nano` is a nice,\n+safe choice if you don't know what else to choose:\n+\n+~~~ {.bash}\n+$ EDITOR=nano hg config --edit\n+~~~\n+\n+The file should look a lot like:\n+\n+~~~ {.output}\n+# example user config (see \"hg help config\" for more info)\n+[ui]\n+# name and email, e.g.\n+# username = Jane Doe <jdoe@example.com>\n+username =\n+\n+[extensions]\n+# uncomment these lines to enable some popular extensions\n+# (see \"hg help extensions\" for more info)\n+#\n+# pager =\n+# progress =\n+# color =\n+~~~\n+\n+Edit the file to set `username` to your own name and email address and add your\n+favourite editor in the `[ui]` section.\n+Also uncomment the the `pager =`,\n+`progress =`,\n+and `color =` lines in the `[extensions]` section.\n+You can leave or delete the other comment lines (that start with `#`) as you wish.\n+When you are done your file should look something like:\n+\n+~~~ {.output}\n+[ui]\n+username = Doug Latornell <djl@douglatornell.ca>\n+editor = nano\n+\n+[extensions]\n+pager =\n+progress =\n+color =\n+~~~\n+\n+If you are on Windows,\n+please also add a `[color]` section to the file:\n+\n+~~~ {.output}\n+[color]\n+mode = win32\n+~~~\n+\n+When you are finished,\n+save the file and exit your editor.\n+You can check that your settings are the way that you want them with the command\n+\n+~~~ {.bash}\n+$ hg config ui extensions","path":"02-configuration.md","position":83,"original_position":83,"commit_id":"8fdcd662a873eb3634c91772185939e1e8db2220","original_commit_id":"8fdcd662a873eb3634c91772185939e1e8db2220","user":{"login":"jdcorless","id":3066224,"avatar_url":"https://avatars.githubusercontent.com/u/3066224?v=3","gravatar_id":"","url":"https://api.github.com/users/jdcorless","html_url":"https://github.com/jdcorless","followers_url":"https://api.github.com/users/jdcorless/followers","following_url":"https://api.github.com/users/jdcorless/following{/other_user}","gists_url":"https://api.github.com/users/jdcorless/gists{/gist_id}","starred_url":"https://api.github.com/users/jdcorless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdcorless/subscriptions","organizations_url":"https://api.github.com/users/jdcorless/orgs","repos_url":"https://api.github.com/users/jdcorless/repos","events_url":"https://api.github.com/users/jdcorless/events{/privacy}","received_events_url":"https://api.github.com/users/jdcorless/received_events","type":"User","site_admin":false},"body":"Same issue (hg: unknown command 'config')","created_at":"2015-09-20T17:41:55Z","updated_at":"2015-09-20T17:41:55Z","html_url":"https://github.com/swcarpentry/hg-novice/pull/22#discussion_r39932356","pull_request_url":"https://api.github.com/repos/swcarpentry/hg-novice/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/swcarpentry/hg-novice/pulls/comments/39932356"},"html":{"href":"https://github.com/swcarpentry/hg-novice/pull/22#discussion_r39932356"},"pull_request":{"href":"https://api.github.com/repos/swcarpentry/hg-novice/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/swcarpentry/hg-novice/pulls/22","id":45228472,"html_url":"https://github.com/swcarpentry/hg-novice/pull/22","diff_url":"https://github.com/swcarpentry/hg-novice/pull/22.diff","patch_url":"https://github.com/swcarpentry/hg-novice/pull/22.patch","issue_url":"https://api.github.com/repos/swcarpentry/hg-novice/issues/22","number":22,"state":"open","locked":false,"title":"Refactor 01-backup","user":{"login":"douglatornell","id":76797,"avatar_url":"https://avatars.githubusercontent.com/u/76797?v=3","gravatar_id":"","url":"https://api.github.com/users/douglatornell","html_url":"https://github.com/douglatornell","followers_url":"https://api.github.com/users/douglatornell/followers","following_url":"https://api.github.com/users/douglatornell/following{/other_user}","gists_url":"https://api.github.com/users/douglatornell/gists{/gist_id}","starred_url":"https://api.github.com/users/douglatornell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglatornell/subscriptions","organizations_url":"https://api.github.com/users/douglatornell/orgs","repos_url":"https://api.github.com/users/douglatornell/repos","events_url":"https://api.github.com/users/douglatornell/events{/privacy}","received_events_url":"https://api.github.com/users/douglatornell/received_events","type":"User","site_admin":false},"body":"Split the monolithic 01-backup lesson section into 8 smaller topic sections.\r\n\r\nI did a lot of this refactoring for a workshop that I created in Jun-2015 based on the SWC material. it is rendered at http://douglatornell.ca/training/meopeers-2015-06-15/\r\n\r\nWe are going to teach this refactored version of the hg lesson next week at the UBC EOAS workshop, so it will get trial by fire, but I would also appreciate reviewer comments.","created_at":"2015-09-16T21:47:02Z","updated_at":"2015-09-20T17:41:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4de683c9f6db65ce825eb6981414269cfd2dafb9","assignee":{"login":"douglatornell","id":76797,"avatar_url":"https://avatars.githubusercontent.com/u/76797?v=3","gravatar_id":"","url":"https://api.github.com/users/douglatornell","html_url":"https://github.com/douglatornell","followers_url":"https://api.github.com/users/douglatornell/followers","following_url":"https://api.github.com/users/douglatornell/following{/other_user}","gists_url":"https://api.github.com/users/douglatornell/gists{/gist_id}","starred_url":"https://api.github.com/users/douglatornell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglatornell/subscriptions","organizations_url":"https://api.github.com/users/douglatornell/orgs","repos_url":"https://api.github.com/users/douglatornell/repos","events_url":"https://api.github.com/users/douglatornell/events{/privacy}","received_events_url":"https://api.github.com/users/douglatornell/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/swcarpentry/hg-novice/milestones/2","html_url":"https://github.com/swcarpentry/hg-novice/milestones/Version%205.4","labels_url":"https://api.github.com/repos/swcarpentry/hg-novice/milestones/2/labels","id":1159387,"number":2,"title":"Version 5.4","description":"","creator":{"login":"gvwilson","id":911566,"avatar_url":"https://avatars.githubusercontent.com/u/911566?v=3","gravatar_id":"","url":"https://api.github.com/users/gvwilson","html_url":"https://github.com/gvwilson","followers_url":"https://api.github.com/users/gvwilson/followers","following_url":"https://api.github.com/users/gvwilson/following{/other_user}","gists_url":"https://api.github.com/users/gvwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/gvwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvwilson/subscriptions","organizations_url":"https://api.github.com/users/gvwilson/orgs","repos_url":"https://api.github.com/users/gvwilson/repos","events_url":"https://api.github.com/users/gvwilson/events{/privacy}","received_events_url":"https://api.github.com/users/gvwilson/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2015-06-10T22:36:30Z","updated_at":"2015-09-16T21:47:03Z","due_on":"2015-08-15T04:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/swcarpentry/hg-novice/pulls/22/commits","review_comments_url":"https://api.github.com/repos/swcarpentry/hg-novice/pulls/22/comments","review_comment_url":"https://api.github.com/repos/swcarpentry/hg-novice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swcarpentry/hg-novice/issues/22/comments","statuses_url":"https://api.github.com/repos/swcarpentry/hg-novice/statuses/8fdcd662a873eb3634c91772185939e1e8db2220","head":{"label":"douglatornell:refactor-01-backup","ref":"refactor-01-backup","sha":"8fdcd662a873eb3634c91772185939e1e8db2220","user":{"login":"douglatornell","id":76797,"avatar_url":"https://avatars.githubusercontent.com/u/76797?v=3","gravatar_id":"","url":"https://api.github.com/users/douglatornell","html_url":"https://github.com/douglatornell","followers_url":"https://api.github.com/users/douglatornell/followers","following_url":"https://api.github.com/users/douglatornell/following{/other_user}","gists_url":"https://api.github.com/users/douglatornell/gists{/gist_id}","starred_url":"https://api.github.com/users/douglatornell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglatornell/subscriptions","organizations_url":"https://api.github.com/users/douglatornell/orgs","repos_url":"https://api.github.com/users/douglatornell/repos","events_url":"https://api.github.com/users/douglatornell/events{/privacy}","received_events_url":"https://api.github.com/users/douglatornell/received_events","type":"User","site_admin":false},"repo":{"id":33772626,"name":"hg-novice","full_name":"douglatornell/hg-novice","owner":{"login":"douglatornell","id":76797,"avatar_url":"https://avatars.githubusercontent.com/u/76797?v=3","gravatar_id":"","url":"https://api.github.com/users/douglatornell","html_url":"https://github.com/douglatornell","followers_url":"https://api.github.com/users/douglatornell/followers","following_url":"https://api.github.com/users/douglatornell/following{/other_user}","gists_url":"https://api.github.com/users/douglatornell/gists{/gist_id}","starred_url":"https://api.github.com/users/douglatornell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglatornell/subscriptions","organizations_url":"https://api.github.com/users/douglatornell/orgs","repos_url":"https://api.github.com/users/douglatornell/repos","events_url":"https://api.github.com/users/douglatornell/events{/privacy}","received_events_url":"https://api.github.com/users/douglatornell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/douglatornell/hg-novice","description":"Software Carpentry introduction to Mercurial for novices.","fork":true,"url":"https://api.github.com/repos/douglatornell/hg-novice","forks_url":"https://api.github.com/repos/douglatornell/hg-novice/forks","keys_url":"https://api.github.com/repos/douglatornell/hg-novice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/douglatornell/hg-novice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/douglatornell/hg-novice/teams","hooks_url":"https://api.github.com/repos/douglatornell/hg-novice/hooks","issue_events_url":"https://api.github.com/repos/douglatornell/hg-novice/issues/events{/number}","events_url":"https://api.github.com/repos/douglatornell/hg-novice/events","assignees_url":"https://api.github.com/repos/douglatornell/hg-novice/assignees{/user}","branches_url":"https://api.github.com/repos/douglatornell/hg-novice/branches{/branch}","tags_url":"https://api.github.com/repos/douglatornell/hg-novice/tags","blobs_url":"https://api.github.com/repos/douglatornell/hg-novice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/douglatornell/hg-novice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/douglatornell/hg-novice/git/refs{/sha}","trees_url":"https://api.github.com/repos/douglatornell/hg-novice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/douglatornell/hg-novice/statuses/{sha}","languages_url":"https://api.github.com/repos/douglatornell/hg-novice/languages","stargazers_url":"https://api.github.com/repos/douglatornell/hg-novice/stargazers","contributors_url":"https://api.github.com/repos/douglatornell/hg-novice/contributors","subscribers_url":"https://api.github.com/repos/douglatornell/hg-novice/subscribers","subscription_url":"https://api.github.com/repos/douglatornell/hg-novice/subscription","commits_url":"https://api.github.com/repos/douglatornell/hg-novice/commits{/sha}","git_commits_url":"https://api.github.com/repos/douglatornell/hg-novice/git/commits{/sha}","comments_url":"https://api.github.com/repos/douglatornell/hg-novice/comments{/number}","issue_comment_url":"https://api.github.com/repos/douglatornell/hg-novice/issues/comments{/number}","contents_url":"https://api.github.com/repos/douglatornell/hg-novice/contents/{+path}","compare_url":"https://api.github.com/repos/douglatornell/hg-novice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/douglatornell/hg-novice/merges","archive_url":"https://api.github.com/repos/douglatornell/hg-novice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/douglatornell/hg-novice/downloads","issues_url":"https://api.github.com/repos/douglatornell/hg-novice/issues{/number}","pulls_url":"https://api.github.com/repos/douglatornell/hg-novice/pulls{/number}","milestones_url":"https://api.github.com/repos/douglatornell/hg-novice/milestones{/number}","notifications_url":"https://api.github.com/repos/douglatornell/hg-novice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/douglatornell/hg-novice/labels{/name}","releases_url":"https://api.github.com/repos/douglatornell/hg-novice/releases{/id}","created_at":"2015-04-11T10:59:39Z","updated_at":"2015-05-07T03:00:32Z","pushed_at":"2015-09-16T21:37:31Z","git_url":"git://github.com/douglatornell/hg-novice.git","ssh_url":"git@github.com:douglatornell/hg-novice.git","clone_url":"https://github.com/douglatornell/hg-novice.git","svn_url":"https://github.com/douglatornell/hg-novice","homepage":"http://swcarpentry.github.io/hg-novice/","size":2550,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"swcarpentry:gh-pages","ref":"gh-pages","sha":"590453c5580d39ee85393d65d2d12d64814f0b72","user":{"login":"swcarpentry","id":2238358,"avatar_url":"https://avatars.githubusercontent.com/u/2238358?v=3","gravatar_id":"","url":"https://api.github.com/users/swcarpentry","html_url":"https://github.com/swcarpentry","followers_url":"https://api.github.com/users/swcarpentry/followers","following_url":"https://api.github.com/users/swcarpentry/following{/other_user}","gists_url":"https://api.github.com/users/swcarpentry/gists{/gist_id}","starred_url":"https://api.github.com/users/swcarpentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swcarpentry/subscriptions","organizations_url":"https://api.github.com/users/swcarpentry/orgs","repos_url":"https://api.github.com/users/swcarpentry/repos","events_url":"https://api.github.com/users/swcarpentry/events{/privacy}","received_events_url":"https://api.github.com/users/swcarpentry/received_events","type":"Organization","site_admin":false},"repo":{"id":27146478,"name":"hg-novice","full_name":"swcarpentry/hg-novice","owner":{"login":"swcarpentry","id":2238358,"avatar_url":"https://avatars.githubusercontent.com/u/2238358?v=3","gravatar_id":"","url":"https://api.github.com/users/swcarpentry","html_url":"https://github.com/swcarpentry","followers_url":"https://api.github.com/users/swcarpentry/followers","following_url":"https://api.github.com/users/swcarpentry/following{/other_user}","gists_url":"https://api.github.com/users/swcarpentry/gists{/gist_id}","starred_url":"https://api.github.com/users/swcarpentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swcarpentry/subscriptions","organizations_url":"https://api.github.com/users/swcarpentry/orgs","repos_url":"https://api.github.com/users/swcarpentry/repos","events_url":"https://api.github.com/users/swcarpentry/events{/privacy}","received_events_url":"https://api.github.com/users/swcarpentry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swcarpentry/hg-novice","description":"Software Carpentry introduction to Mercurial for novices.","fork":false,"url":"https://api.github.com/repos/swcarpentry/hg-novice","forks_url":"https://api.github.com/repos/swcarpentry/hg-novice/forks","keys_url":"https://api.github.com/repos/swcarpentry/hg-novice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swcarpentry/hg-novice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swcarpentry/hg-novice/teams","hooks_url":"https://api.github.com/repos/swcarpentry/hg-novice/hooks","issue_events_url":"https://api.github.com/repos/swcarpentry/hg-novice/issues/events{/number}","events_url":"https://api.github.com/repos/swcarpentry/hg-novice/events","assignees_url":"https://api.github.com/repos/swcarpentry/hg-novice/assignees{/user}","branches_url":"https://api.github.com/repos/swcarpentry/hg-novice/branches{/branch}","tags_url":"https://api.github.com/repos/swcarpentry/hg-novice/tags","blobs_url":"https://api.github.com/repos/swcarpentry/hg-novice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swcarpentry/hg-novice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swcarpentry/hg-novice/git/refs{/sha}","trees_url":"https://api.github.com/repos/swcarpentry/hg-novice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swcarpentry/hg-novice/statuses/{sha}","languages_url":"https://api.github.com/repos/swcarpentry/hg-novice/languages","stargazers_url":"https://api.github.com/repos/swcarpentry/hg-novice/stargazers","contributors_url":"https://api.github.com/repos/swcarpentry/hg-novice/contributors","subscribers_url":"https://api.github.com/repos/swcarpentry/hg-novice/subscribers","subscription_url":"https://api.github.com/repos/swcarpentry/hg-novice/subscription","commits_url":"https://api.github.com/repos/swcarpentry/hg-novice/commits{/sha}","git_commits_url":"https://api.github.com/repos/swcarpentry/hg-novice/git/commits{/sha}","comments_url":"https://api.github.com/repos/swcarpentry/hg-novice/comments{/number}","issue_comment_url":"https://api.github.com/repos/swcarpentry/hg-novice/issues/comments{/number}","contents_url":"https://api.github.com/repos/swcarpentry/hg-novice/contents/{+path}","compare_url":"https://api.github.com/repos/swcarpentry/hg-novice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swcarpentry/hg-novice/merges","archive_url":"https://api.github.com/repos/swcarpentry/hg-novice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swcarpentry/hg-novice/downloads","issues_url":"https://api.github.com/repos/swcarpentry/hg-novice/issues{/number}","pulls_url":"https://api.github.com/repos/swcarpentry/hg-novice/pulls{/number}","milestones_url":"https://api.github.com/repos/swcarpentry/hg-novice/milestones{/number}","notifications_url":"https://api.github.com/repos/swcarpentry/hg-novice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swcarpentry/hg-novice/labels{/name}","releases_url":"https://api.github.com/repos/swcarpentry/hg-novice/releases{/id}","created_at":"2014-11-25T21:19:06Z","updated_at":"2015-04-30T12:08:21Z","pushed_at":"2015-09-16T21:47:03Z","git_url":"git://github.com/swcarpentry/hg-novice.git","ssh_url":"git@github.com:swcarpentry/hg-novice.git","clone_url":"https://github.com/swcarpentry/hg-novice.git","svn_url":"https://github.com/swcarpentry/hg-novice","homepage":"http://swcarpentry.github.io/hg-novice/","size":2716,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":3,"forks":7,"open_issues":3,"watchers":1,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/swcarpentry/hg-novice/pulls/22"},"html":{"href":"https://github.com/swcarpentry/hg-novice/pull/22"},"issue":{"href":"https://api.github.com/repos/swcarpentry/hg-novice/issues/22"},"comments":{"href":"https://api.github.com/repos/swcarpentry/hg-novice/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/swcarpentry/hg-novice/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/swcarpentry/hg-novice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swcarpentry/hg-novice/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/swcarpentry/hg-novice/statuses/8fdcd662a873eb3634c91772185939e1e8db2220"}}}}