{"id":294,"date":"2011-12-16T14:50:03","date_gmt":"2011-12-16T22:50:03","guid":{"rendered":"http:\/\/blog.mozilla.org\/sfink\/?p=294"},"modified":"2021-06-13T14:10:19","modified_gmt":"2021-06-13T21:10:19","slug":"hg-adventure","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/sfink\/2011\/12\/16\/hg-adventure\/","title":{"rendered":"hg adventure"},"content":{"rendered":"<p>Inspired by some silliness on #developers:<\/p>\n<pre>\r\n&lt;jgilbert>\twell that was an hg adventure\r\n&lt;dholbert>\t$ hg adventure\r\nYou are in a twisty maze of passageways, all alike...\r\n&lt;cpeterson>\t$ hg look\r\nIt is pitch black. You are likely to be eaten by a grue.\r\n&lt;hub>\t\t$ hg doctor\r\nHow can I help you?\r\n<\/pre>\n<p>I thought I&#8217;d stick to actual hg commands, and came up with:<\/p>\n<pre>\r\nYou see a small hole leading to a dark passageway.\r\n820:21d40b86ae37$ echo \"enter passageway\" > action\r\n820:21d40b86ae37$ hg commit\r\nIt is pitch black. You are likely to be eaten by a grue.\r\n821:0121fb347e18$ echo \"look\" > action\r\n821:0121fb347e18$ hg commit\r\n** You have been eaten by a grue **\r\n822:b09217a7bbc1$ hg backout 822\r\nIt is pitch black. You are likely to be eaten by a grue.\r\n821:0121fb347e18$ hg backout 821\r\nYou see a small hole leading to a dark passageway.\r\n820:21d40b86ae37$ echo \"turn on flashlight\" > action\r\n820:21d40b86ae37$ hg commit\r\nYour flashlight is now on.\r\n824:44a4e4bf5f0e$ hg merge 821\r\nYour light reveals a forking passageway leading north and south.\r\n<\/pre>\n<p>Kinda makes you think, huh? Time reversal games became popular semi-recently (eg Braid). Maybe the fad is over now; I&#8217;m *way* out of date.<\/p>\n<p>But did any of them allow you to branch and merge? Push and pull from your friends&#8217; distributed repos? Bisect to find the point where you unknowingly did something that prevented ever winning the game and either continue from there, merge a backout of that action, or create a new branch by splicing that action out?<\/p>\n<p>It&#8217;s a whole new genre! It&#8217;ll be&#8230; um&#8230; fun.<\/p>\n<p>(I&#8217;ll go back to work now)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Inspired by some silliness on #developers: &lt;jgilbert> well that was an hg adventure &lt;dholbert> $ hg adventure You are in a twisty maze of passageways, all alike&#8230; &lt;cpeterson> $ hg look It is pitch black. You are likely to be eaten by a grue. &lt;hub> $ hg doctor How can I help you? I thought [&hellip;]<\/p>\n","protected":false},"author":206,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[477,289,137],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/sfink\/wp-json\/wp\/v2\/posts\/294"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/sfink\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/sfink\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/sfink\/wp-json\/wp\/v2\/users\/206"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/sfink\/wp-json\/wp\/v2\/comments?post=294"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/sfink\/wp-json\/wp\/v2\/posts\/294\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/sfink\/wp-json\/wp\/v2\/media?parent=294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/sfink\/wp-json\/wp\/v2\/categories?post=294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/sfink\/wp-json\/wp\/v2\/tags?post=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}