Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HEAD independent version script #177

Merged
merged 1 commit into from
Mar 5, 2016
Merged

HEAD independent version script #177

merged 1 commit into from
Mar 5, 2016

Conversation

yuyichao
Copy link
Contributor

@yuyichao yuyichao commented Mar 3, 2016

A slightly better way to fix #151.

Do not rely on the current checkout version and consistently query version info for the commit specified (default to HEAD). The only requirement now is a clone of the julia repo with up-to-date commit and tag info (i.e. it needs to have the commit you specify and the latest tag before the commit).

Before,

yyc2:~/projects/julia/master
yuyichao% ~/projects/contrib/Compat.jl/bin/version.sh      
0.5.0-dev+0
yyc2:~/projects/julia/master
yuyichao% ~/projects/contrib/Compat.jl/bin/version.sh release-0.4  
0.5.0-dev+572
yyc2:~/projects/julia/master
yuyichao% ~/projects/contrib/Compat.jl/bin/version.sh HEAD~      
0.5.0-dev+2980
yyc2:~/projects/julia/master
yuyichao% ~/projects/contrib/Compat.jl/bin/version.sh 86cd5ea3c61426ebddd1d3809ffa869d6726fb30
0.5.0-dev+2048

After,

yyc2:~/projects/julia/master
yuyichao% ~/projects/contrib/Compat.jl/bin/version.sh
0.5.0-dev+2983
yyc2:~/projects/julia/master
yuyichao% ~/projects/contrib/Compat.jl/bin/version.sh release-0.4
0.4.4-pre+35
yyc2:~/projects/julia/master
yuyichao% ~/projects/contrib/Compat.jl/bin/version.sh HEAD~        
0.5.0-dev+2980
yyc2:~/projects/julia/master
yuyichao% ~/projects/contrib/Compat.jl/bin/version.sh 86cd5ea3c61426ebddd1d3809ffa869d6726fb30
0.5.0-dev+2048

@yuyichao
Copy link
Contributor Author

yuyichao commented Mar 3, 2016

Also update the README about the version script...

yuyichao added a commit that referenced this pull request Mar 5, 2016
HEAD independent version script
@yuyichao yuyichao merged commit 6bb4945 into master Mar 5, 2016
@yuyichao yuyichao deleted the yyc/version branch March 5, 2016 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

version.sh needs an update for 0.5
1 participant