Hello bradfitz, rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
LGTM On Wed, Jun 29, 2011 at 9:58 PM, <adg@golang.org> wrote: > Reviewers: bradfitz, rsc, > > Message: > Hello bradfitz, rsc (cc: golang-dev@googlegroups.com), > > I'd like you to review this change to > https://go.googlecode.com/hg/ > > > Description: > build: make version.bash aware of branches > > Fixes issue 2026. > > Please review this at http://codereview.appspot.com/**4645074/<http://codereview.appspot.com/4645074/> > > Affected files: > M src/version.bash > > > Index: src/version.bash > ==============================**==============================**======= > --- a/src/version.bash > +++ b/src/version.bash > @@ -16,8 +16,15 @@ > VERSION=$(echo $OLD | awk '{print $1}') > fi > > -# Find most recent known release tag. > +# Get branch type > +BRANCH=release > +if [ "$(hg identify -b 2>/dev/null)" == "default" ]; then > + BRANCH=weekly > +fi > + > +# Find most recent known release or weekly tag. > TAG=$(hg tags | > + grep $BRANCH | > sed 's/:.*//' | > sort -rn -k2 | > awk -v ver=$VERSION '$2 <= ver && $1~/^(release|weekly)\./ {print > $1}' | > > >
*** Submitted as http://code.google.com/p/go/source/detail?r=dd31a3b56536 *** build: make version.bash aware of branches Fixes issue 2026. R=bradfitz, rsc CC=golang-dev http://codereview.appspot.com/4645074