[ 
https://issues.apache.org/jira/browse/STORM-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14274598#comment-14274598
 ] 

ASF GitHub Bot commented on STORM-243:
--------------------------------------

Github user caofangkun commented on a diff in the pull request:

    https://github.com/apache/storm/pull/294#discussion_r22839430
  
    --- Diff: storm-core/src/saveVersion.sh ---
    @@ -0,0 +1,42 @@
    +#this file is used to generate the package-info.java class that
    +# records the version, revision, branch, user, timestamp, and url
    +unset LANG
    +unset LC_CTYPE
    +unset LC_TIME
    +version=$1
    +build_dir=$2
    +user=`whoami`
    +date=`date`
    +cwd=`pwd`
    +if [ -d ../.git ]; then
    +  revision=`git log -1 --pretty=format:"%H"`
    +  hostname=`hostname`
    +  branch=`git branch | sed -n -e 's/^* //p'`
    +  url=`git remote -v | sed -n -e 's/^origin[[:space:]]\(.*\)(fetch)/\1/p'`
    +elif [ -d .svn ]; then
    --- End diff --
    
    @mnogu 
    Thank you for your advice. 
    But users can clone with Subversion. If so , I think  it's necessary to 
deal with .svn .


> Record version and revision information in builds 
> --------------------------------------------------
>
>                 Key: STORM-243
>                 URL: https://issues.apache.org/jira/browse/STORM-243
>             Project: Apache Storm
>          Issue Type: Improvement
>            Reporter: caofangkun
>            Assignee: caofangkun
>            Priority: Minor
>         Attachments: STORM-243-1.patch, ui.png
>
>
> The effect shown below, 
> For Subversion project :
> $ storm version 
> Storm 0.9.2-incubating-SNAPSHOT
> Subversion https://github.com/apache/incubator-storm/trunk/storm-core -r 1959
> Compiled by somebody on Wed Feb 19 11:23:38 CST 2014
> From source with checksum 9347aded8a39f3ddf8e8f2f9bf56186f
> or 
> $ java -classpath storm-core-0.9.2-incubating-SNAPSHOT.jar  
> backtype.storm.utils.VersionInfo
> Storm 0.9.2-incubating-SNAPSHOT
> Subversion https://github.com/apache/incubator-storm/trunk/storm-core -r 1959
> Compiled by somebody on Wed Feb 19 11:23:38 CST 2014
> From source with checksum 9347aded8a39f3ddf8e8f2f9bf56186f
> For Git Project:
> $ storm version 
> ➜ storm-current storm version
> Running: ... ...
> Storm 0.10.0-SNAPSHOT
> Subversion https://github.com/caofangkun/apache-storm.git -r 
> ffba148cc47a92185fa1a5db11f72982de10f106
> Branch storm-243
> Compiled by caokun on Thu Jan 8 10:47:48 CST 2015
> From source with checksum 97e7c942939e3e82dcb854b497991a51
> For UI 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to