{"action":"created","comment":{"url":"https://api.github.com/repos/square/flow/pulls/comments/38333551","id":38333551,"diff_hunk":"@@ -68,9 +68,29 @@ protected PathContainer(int tagKey) {\n \n   public final void executeTraversal(PathContainerView view, Flow.Traversal traversal,\n       final Flow.TraversalCallback callback) {\n-    final View oldChild = view.getCurrentChild();\n-    Path path = traversal.destination.top();\n     ViewState viewState = traversal.destination.currentViewState();\n+    doShowPath(view, traversal.destination.<Path>top(), traversal.direction, viewState, callback);\n+  }\n+\n+  /**\n+   * Replace the current view and show the given path. Allows display of {@link Path}s other\n+   * than in response to Flow dispatches.\n+   */\n+  public void clearAndShowPath(PathContainerView view, Path path, Flow.Direction direction,\n+      Flow.TraversalCallback callback) {\n+    ViewState nullViewState = new ViewState() {","path":"flow-path/src/main/java/flow/path/PathContainer.java","position":null,"original_position":16,"commit_id":"9c16438962ebbd67d28e4d12a9d647729b18269e","original_commit_id":"1bfc07eec1adf25de92fa3875a9e4f55fce5b31f","user":{"login":"rjrjr","id":1884445,"avatar_url":"https://avatars.githubusercontent.com/u/1884445?v=3","gravatar_id":"","url":"https://api.github.com/users/rjrjr","html_url":"https://github.com/rjrjr","followers_url":"https://api.github.com/users/rjrjr/followers","following_url":"https://api.github.com/users/rjrjr/following{/other_user}","gists_url":"https://api.github.com/users/rjrjr/gists{/gist_id}","starred_url":"https://api.github.com/users/rjrjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjrjr/subscriptions","organizations_url":"https://api.github.com/users/rjrjr/orgs","repos_url":"https://api.github.com/users/rjrjr/repos","events_url":"https://api.github.com/users/rjrjr/events{/privacy}","received_events_url":"https://api.github.com/users/rjrjr/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2015-08-31T17:07:00Z","updated_at":"2015-08-31T17:07:00Z","html_url":"https://github.com/square/flow/pull/107#discussion_r38333551","pull_request_url":"https://api.github.com/repos/square/flow/pulls/107","_links":{"self":{"href":"https://api.github.com/repos/square/flow/pulls/comments/38333551"},"html":{"href":"https://github.com/square/flow/pull/107#discussion_r38333551"},"pull_request":{"href":"https://api.github.com/repos/square/flow/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/square/flow/pulls/107","id":43683394,"html_url":"https://github.com/square/flow/pull/107","diff_url":"https://github.com/square/flow/pull/107.diff","patch_url":"https://github.com/square/flow/pull/107.patch","issue_url":"https://api.github.com/repos/square/flow/issues/107","number":107,"state":"open","locked":false,"title":"PathContainer#clearAndShowPath, History#peek(int)","user":{"login":"rjrjr","id":1884445,"avatar_url":"https://avatars.githubusercontent.com/u/1884445?v=3","gravatar_id":"","url":"https://api.github.com/users/rjrjr","html_url":"https://github.com/rjrjr","followers_url":"https://api.github.com/users/rjrjr/followers","following_url":"https://api.github.com/users/rjrjr/following{/other_user}","gists_url":"https://api.github.com/users/rjrjr/gists{/gist_id}","starred_url":"https://api.github.com/users/rjrjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjrjr/subscriptions","organizations_url":"https://api.github.com/users/rjrjr/orgs","repos_url":"https://api.github.com/users/rjrjr/repos","events_url":"https://api.github.com/users/rjrjr/events{/privacy}","received_events_url":"https://api.github.com/users/rjrjr/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-29T00:05:12Z","updated_at":"2015-08-31T17:07:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24f64ec9e00cd44c2554767fbfd51343bc2aa8a1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/square/flow/pulls/107/commits","review_comments_url":"https://api.github.com/repos/square/flow/pulls/107/comments","review_comment_url":"https://api.github.com/repos/square/flow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/square/flow/issues/107/comments","statuses_url":"https://api.github.com/repos/square/flow/statuses/9c16438962ebbd67d28e4d12a9d647729b18269e","head":{"label":"square:ray/show-this","ref":"ray/show-this","sha":"9c16438962ebbd67d28e4d12a9d647729b18269e","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":12796207,"name":"flow","full_name":"square/flow","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/flow","description":"A small library that helps with describing an app as a collection of moderately independent screens. ","fork":false,"url":"https://api.github.com/repos/square/flow","forks_url":"https://api.github.com/repos/square/flow/forks","keys_url":"https://api.github.com/repos/square/flow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/flow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/flow/teams","hooks_url":"https://api.github.com/repos/square/flow/hooks","issue_events_url":"https://api.github.com/repos/square/flow/issues/events{/number}","events_url":"https://api.github.com/repos/square/flow/events","assignees_url":"https://api.github.com/repos/square/flow/assignees{/user}","branches_url":"https://api.github.com/repos/square/flow/branches{/branch}","tags_url":"https://api.github.com/repos/square/flow/tags","blobs_url":"https://api.github.com/repos/square/flow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/flow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/flow/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/flow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/flow/statuses/{sha}","languages_url":"https://api.github.com/repos/square/flow/languages","stargazers_url":"https://api.github.com/repos/square/flow/stargazers","contributors_url":"https://api.github.com/repos/square/flow/contributors","subscribers_url":"https://api.github.com/repos/square/flow/subscribers","subscription_url":"https://api.github.com/repos/square/flow/subscription","commits_url":"https://api.github.com/repos/square/flow/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/flow/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/flow/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/flow/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/flow/contents/{+path}","compare_url":"https://api.github.com/repos/square/flow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/flow/merges","archive_url":"https://api.github.com/repos/square/flow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/flow/downloads","issues_url":"https://api.github.com/repos/square/flow/issues{/number}","pulls_url":"https://api.github.com/repos/square/flow/pulls{/number}","milestones_url":"https://api.github.com/repos/square/flow/milestones{/number}","notifications_url":"https://api.github.com/repos/square/flow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/flow/labels{/name}","releases_url":"https://api.github.com/repos/square/flow/releases{/id}","created_at":"2013-09-12T22:20:16Z","updated_at":"2015-08-31T14:03:25Z","pushed_at":"2015-08-31T17:06:50Z","git_url":"git://github.com/square/flow.git","ssh_url":"git@github.com:square/flow.git","clone_url":"https://github.com/square/flow.git","svn_url":"https://github.com/square/flow","homepage":"","size":1757,"stargazers_count":1102,"watchers_count":1102,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":106,"mirror_url":null,"open_issues_count":16,"forks":106,"open_issues":16,"watchers":1102,"default_branch":"master"}},"base":{"label":"square:master","ref":"master","sha":"7ca3c0d83098c1cdb5320cbefb4ab5d948cf13df","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":12796207,"name":"flow","full_name":"square/flow","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/flow","description":"A small library that helps with describing an app as a collection of moderately independent screens. ","fork":false,"url":"https://api.github.com/repos/square/flow","forks_url":"https://api.github.com/repos/square/flow/forks","keys_url":"https://api.github.com/repos/square/flow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/flow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/flow/teams","hooks_url":"https://api.github.com/repos/square/flow/hooks","issue_events_url":"https://api.github.com/repos/square/flow/issues/events{/number}","events_url":"https://api.github.com/repos/square/flow/events","assignees_url":"https://api.github.com/repos/square/flow/assignees{/user}","branches_url":"https://api.github.com/repos/square/flow/branches{/branch}","tags_url":"https://api.github.com/repos/square/flow/tags","blobs_url":"https://api.github.com/repos/square/flow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/flow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/flow/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/flow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/flow/statuses/{sha}","languages_url":"https://api.github.com/repos/square/flow/languages","stargazers_url":"https://api.github.com/repos/square/flow/stargazers","contributors_url":"https://api.github.com/repos/square/flow/contributors","subscribers_url":"https://api.github.com/repos/square/flow/subscribers","subscription_url":"https://api.github.com/repos/square/flow/subscription","commits_url":"https://api.github.com/repos/square/flow/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/flow/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/flow/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/flow/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/flow/contents/{+path}","compare_url":"https://api.github.com/repos/square/flow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/flow/merges","archive_url":"https://api.github.com/repos/square/flow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/flow/downloads","issues_url":"https://api.github.com/repos/square/flow/issues{/number}","pulls_url":"https://api.github.com/repos/square/flow/pulls{/number}","milestones_url":"https://api.github.com/repos/square/flow/milestones{/number}","notifications_url":"https://api.github.com/repos/square/flow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/flow/labels{/name}","releases_url":"https://api.github.com/repos/square/flow/releases{/id}","created_at":"2013-09-12T22:20:16Z","updated_at":"2015-08-31T14:03:25Z","pushed_at":"2015-08-31T17:06:50Z","git_url":"git://github.com/square/flow.git","ssh_url":"git@github.com:square/flow.git","clone_url":"https://github.com/square/flow.git","svn_url":"https://github.com/square/flow","homepage":"","size":1757,"stargazers_count":1102,"watchers_count":1102,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":106,"mirror_url":null,"open_issues_count":16,"forks":106,"open_issues":16,"watchers":1102,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/square/flow/pulls/107"},"html":{"href":"https://github.com/square/flow/pull/107"},"issue":{"href":"https://api.github.com/repos/square/flow/issues/107"},"comments":{"href":"https://api.github.com/repos/square/flow/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/square/flow/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/square/flow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/square/flow/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/square/flow/statuses/9c16438962ebbd67d28e4d12a9d647729b18269e"}}}}