{"action":"created","comment":{"url":"https://api.github.com/repos/apache/storm/pulls/comments/22720641","id":22720641,"diff_hunk":"@@ -0,0 +1,42 @@\n+#this file is used to generate the package-info.java class that\n+# records the version, revision, branch, user, timestamp, and url\n+unset LANG\n+unset LC_CTYPE\n+unset LC_TIME\n+version=$1\n+build_dir=$2\n+user=`whoami`\n+date=`date`\n+cwd=`pwd`\n+if [ -d ../.git ]; then\n+  revision=`git log -1 --pretty=format:\"%H\"`\n+  hostname=`hostname`\n+  branch=`git branch | sed -n -e 's/^* //p'`\n+  url=`git remote -v | sed -n -e 's/^origin\\t\\(.*\\)(fetch)/\\1/p'`","path":"storm-core/src/saveVersion.sh","position":15,"original_position":15,"commit_id":"63562966db6ef3a07d3e65a417303efc7827d3c3","original_commit_id":"63562966db6ef3a07d3e65a417303efc7827d3c3","user":{"login":"revans2","id":3441321,"avatar_url":"https://avatars.githubusercontent.com/u/3441321?v=3","gravatar_id":"","url":"https://api.github.com/users/revans2","html_url":"https://github.com/revans2","followers_url":"https://api.github.com/users/revans2/followers","following_url":"https://api.github.com/users/revans2/following{/other_user}","gists_url":"https://api.github.com/users/revans2/gists{/gist_id}","starred_url":"https://api.github.com/users/revans2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revans2/subscriptions","organizations_url":"https://api.github.com/users/revans2/orgs","repos_url":"https://api.github.com/users/revans2/repos","events_url":"https://api.github.com/users/revans2/events{/privacy}","received_events_url":"https://api.github.com/users/revans2/received_events","type":"User","site_admin":false},"body":"'\\t' does not work with all versions of sed.  The version that comes with Mac OS X for instance does not support it.  But all of them, supposedly support an actual tab character in the stream.  Could you replace the '\\t' with an actual tab character? ","created_at":"2015-01-09T15:18:02Z","updated_at":"2015-01-09T15:18:02Z","html_url":"https://github.com/apache/storm/pull/294#discussion_r22720641","pull_request_url":"https://api.github.com/repos/apache/storm/pulls/294","_links":{"self":{"href":"https://api.github.com/repos/apache/storm/pulls/comments/22720641"},"html":{"href":"https://github.com/apache/storm/pull/294#discussion_r22720641"},"pull_request":{"href":"https://api.github.com/repos/apache/storm/pulls/294"}}},"pull_request":{"url":"https://api.github.com/repos/apache/storm/pulls/294","id":22828473,"html_url":"https://github.com/apache/storm/pull/294","diff_url":"https://github.com/apache/storm/pull/294.diff","patch_url":"https://github.com/apache/storm/pull/294.patch","issue_url":"https://api.github.com/repos/apache/storm/issues/294","number":294,"state":"open","locked":false,"title":"STORM-243,Record version and revision information in builds","user":{"login":"caofangkun","id":1931407,"avatar_url":"https://avatars.githubusercontent.com/u/1931407?v=3","gravatar_id":"","url":"https://api.github.com/users/caofangkun","html_url":"https://github.com/caofangkun","followers_url":"https://api.github.com/users/caofangkun/followers","following_url":"https://api.github.com/users/caofangkun/following{/other_user}","gists_url":"https://api.github.com/users/caofangkun/gists{/gist_id}","starred_url":"https://api.github.com/users/caofangkun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caofangkun/subscriptions","organizations_url":"https://api.github.com/users/caofangkun/orgs","repos_url":"https://api.github.com/users/caofangkun/repos","events_url":"https://api.github.com/users/caofangkun/events{/privacy}","received_events_url":"https://api.github.com/users/caofangkun/received_events","type":"User","site_admin":false},"body":"Patch atteThe effect shown below, \r\n\r\nFor git project \r\n$ storm version \r\n➜  storm-current  storm version\r\nRunning: ... ...\r\nStorm 0.10.0-SNAPSHOT\r\nSubversion https://github.com/caofangkun/apache-storm.git  -r ffba148cc47a92185fa1a5db11f72982de10f106\r\nBranch storm-243\r\nCompiled by caokun on Thu Jan  8 10:47:48 CST 2015\r\nFrom source with checksum 97e7c942939e3e82dcb854b497991a51\r\n\r\nFor UI:\r\n![ui](https://cloud.githubusercontent.com/assets/1931407/5657215/04aeb7d8-9726-11e4-84d5-a8415fb921aa.png)","created_at":"2014-10-16T02:10:33Z","updated_at":"2015-01-09T15:18:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0a87ce60d197d3f13630620cef9acc35b645d80","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/storm/pulls/294/commits","review_comments_url":"https://api.github.com/repos/apache/storm/pulls/294/comments","review_comment_url":"https://api.github.com/repos/apache/storm/pulls/comments/{number}","comments_url":"https://api.github.com/repos/apache/storm/issues/294/comments","statuses_url":"https://api.github.com/repos/apache/storm/statuses/63562966db6ef3a07d3e65a417303efc7827d3c3","head":{"label":"caofangkun:storm-243","ref":"storm-243","sha":"63562966db6ef3a07d3e65a417303efc7827d3c3","user":{"login":"caofangkun","id":1931407,"avatar_url":"https://avatars.githubusercontent.com/u/1931407?v=3","gravatar_id":"","url":"https://api.github.com/users/caofangkun","html_url":"https://github.com/caofangkun","followers_url":"https://api.github.com/users/caofangkun/followers","following_url":"https://api.github.com/users/caofangkun/following{/other_user}","gists_url":"https://api.github.com/users/caofangkun/gists{/gist_id}","starred_url":"https://api.github.com/users/caofangkun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caofangkun/subscriptions","organizations_url":"https://api.github.com/users/caofangkun/orgs","repos_url":"https://api.github.com/users/caofangkun/repos","events_url":"https://api.github.com/users/caofangkun/events{/privacy}","received_events_url":"https://api.github.com/users/caofangkun/received_events","type":"User","site_admin":false},"repo":{"id":25246004,"name":"apache-storm","full_name":"caofangkun/apache-storm","owner":{"login":"caofangkun","id":1931407,"avatar_url":"https://avatars.githubusercontent.com/u/1931407?v=3","gravatar_id":"","url":"https://api.github.com/users/caofangkun","html_url":"https://github.com/caofangkun","followers_url":"https://api.github.com/users/caofangkun/followers","following_url":"https://api.github.com/users/caofangkun/following{/other_user}","gists_url":"https://api.github.com/users/caofangkun/gists{/gist_id}","starred_url":"https://api.github.com/users/caofangkun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caofangkun/subscriptions","organizations_url":"https://api.github.com/users/caofangkun/orgs","repos_url":"https://api.github.com/users/caofangkun/repos","events_url":"https://api.github.com/users/caofangkun/events{/privacy}","received_events_url":"https://api.github.com/users/caofangkun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caofangkun/apache-storm","description":"Mirror of Apache Storm","fork":true,"url":"https://api.github.com/repos/caofangkun/apache-storm","forks_url":"https://api.github.com/repos/caofangkun/apache-storm/forks","keys_url":"https://api.github.com/repos/caofangkun/apache-storm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caofangkun/apache-storm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caofangkun/apache-storm/teams","hooks_url":"https://api.github.com/repos/caofangkun/apache-storm/hooks","issue_events_url":"https://api.github.com/repos/caofangkun/apache-storm/issues/events{/number}","events_url":"https://api.github.com/repos/caofangkun/apache-storm/events","assignees_url":"https://api.github.com/repos/caofangkun/apache-storm/assignees{/user}","branches_url":"https://api.github.com/repos/caofangkun/apache-storm/branches{/branch}","tags_url":"https://api.github.com/repos/caofangkun/apache-storm/tags","blobs_url":"https://api.github.com/repos/caofangkun/apache-storm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caofangkun/apache-storm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caofangkun/apache-storm/git/refs{/sha}","trees_url":"https://api.github.com/repos/caofangkun/apache-storm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caofangkun/apache-storm/statuses/{sha}","languages_url":"https://api.github.com/repos/caofangkun/apache-storm/languages","stargazers_url":"https://api.github.com/repos/caofangkun/apache-storm/stargazers","contributors_url":"https://api.github.com/repos/caofangkun/apache-storm/contributors","subscribers_url":"https://api.github.com/repos/caofangkun/apache-storm/subscribers","subscription_url":"https://api.github.com/repos/caofangkun/apache-storm/subscription","commits_url":"https://api.github.com/repos/caofangkun/apache-storm/commits{/sha}","git_commits_url":"https://api.github.com/repos/caofangkun/apache-storm/git/commits{/sha}","comments_url":"https://api.github.com/repos/caofangkun/apache-storm/comments{/number}","issue_comment_url":"https://api.github.com/repos/caofangkun/apache-storm/issues/comments/{number}","contents_url":"https://api.github.com/repos/caofangkun/apache-storm/contents/{+path}","compare_url":"https://api.github.com/repos/caofangkun/apache-storm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caofangkun/apache-storm/merges","archive_url":"https://api.github.com/repos/caofangkun/apache-storm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caofangkun/apache-storm/downloads","issues_url":"https://api.github.com/repos/caofangkun/apache-storm/issues{/number}","pulls_url":"https://api.github.com/repos/caofangkun/apache-storm/pulls{/number}","milestones_url":"https://api.github.com/repos/caofangkun/apache-storm/milestones{/number}","notifications_url":"https://api.github.com/repos/caofangkun/apache-storm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caofangkun/apache-storm/labels{/name}","releases_url":"https://api.github.com/repos/caofangkun/apache-storm/releases{/id}","created_at":"2014-10-15T08:36:52Z","updated_at":"2015-01-08T08:20:12Z","pushed_at":"2015-01-09T08:03:04Z","git_url":"git://github.com/caofangkun/apache-storm.git","ssh_url":"git@github.com:caofangkun/apache-storm.git","clone_url":"https://github.com/caofangkun/apache-storm.git","svn_url":"https://github.com/caofangkun/apache-storm","homepage":null,"size":16400,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"e71e2a3f745ee770e20dfd9c878b26f5123877f4","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":14135470,"name":"storm","full_name":"apache/storm","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/storm","description":"Mirror of Apache Storm","fork":false,"url":"https://api.github.com/repos/apache/storm","forks_url":"https://api.github.com/repos/apache/storm/forks","keys_url":"https://api.github.com/repos/apache/storm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/storm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/storm/teams","hooks_url":"https://api.github.com/repos/apache/storm/hooks","issue_events_url":"https://api.github.com/repos/apache/storm/issues/events{/number}","events_url":"https://api.github.com/repos/apache/storm/events","assignees_url":"https://api.github.com/repos/apache/storm/assignees{/user}","branches_url":"https://api.github.com/repos/apache/storm/branches{/branch}","tags_url":"https://api.github.com/repos/apache/storm/tags","blobs_url":"https://api.github.com/repos/apache/storm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/storm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/storm/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/storm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/storm/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/storm/languages","stargazers_url":"https://api.github.com/repos/apache/storm/stargazers","contributors_url":"https://api.github.com/repos/apache/storm/contributors","subscribers_url":"https://api.github.com/repos/apache/storm/subscribers","subscription_url":"https://api.github.com/repos/apache/storm/subscription","commits_url":"https://api.github.com/repos/apache/storm/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/storm/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/storm/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/storm/issues/comments/{number}","contents_url":"https://api.github.com/repos/apache/storm/contents/{+path}","compare_url":"https://api.github.com/repos/apache/storm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/storm/merges","archive_url":"https://api.github.com/repos/apache/storm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/storm/downloads","issues_url":"https://api.github.com/repos/apache/storm/issues{/number}","pulls_url":"https://api.github.com/repos/apache/storm/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/storm/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/storm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/storm/labels{/name}","releases_url":"https://api.github.com/repos/apache/storm/releases{/id}","created_at":"2013-11-05T08:00:14Z","updated_at":"2015-01-09T13:28:04Z","pushed_at":"2015-01-06T22:44:21Z","git_url":"git://github.com/apache/storm.git","ssh_url":"git@github.com:apache/storm.git","clone_url":"https://github.com/apache/storm.git","svn_url":"https://github.com/apache/storm","homepage":null,"size":773819,"stargazers_count":1391,"watchers_count":1391,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":876,"mirror_url":"git://git.apache.org/incubator-storm.git","open_issues_count":52,"forks":876,"open_issues":52,"watchers":1391,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/storm/pulls/294"},"html":{"href":"https://github.com/apache/storm/pull/294"},"issue":{"href":"https://api.github.com/repos/apache/storm/issues/294"},"comments":{"href":"https://api.github.com/repos/apache/storm/issues/294/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/storm/pulls/294/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/storm/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/apache/storm/pulls/294/commits"},"statuses":{"href":"https://api.github.com/repos/apache/storm/statuses/63562966db6ef3a07d3e65a417303efc7827d3c3"}}}}