changeset in /hg/icedtea6: Add IcedTea version to java -version.
Gary Benson
gbenson at redhat.com
Fri Nov 7 06:18:05 PST 2008
Andrew John Hughes wrote:
> 2008/11/7 Gary Benson <gbenson at redhat.com>:
> > Andrew John Hughes wrote:
> > > changeset 829a4250db62 in /hg/icedtea6
> > > details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=829a4250db62
> > > description:
> > > Add IcedTea version to java -version.
> > [snip]
> > > + if [ -e $(abs_top_srcdir)/.hg ]; then \
> > > + revision="-r`(cd $(srcdir); $(HG) tip --template '{rev}')`" ; \
> > > + fi ; \
> > > + icedtea_version="$(PACKAGE_VERSION)$${revision}" ; \
> > > + sed -i "s#IcedTea6#IcedTea6 $${icedtea_version}#" openjdk/jdk/make/common/shared/Defs.gmk
> >
> > The number reported by '{rev}' is only meaningful within your own
> > repository. Anyone mind if I change this to '{node|short}'?
>
> Well the idea was that these would be the revision numbers of the
> IcedTea6 and IcedTea7 repositories, in the same vein as the
> Subversion numbers used by gcc. Do they break in some awful way
> with Mercurial? I can see there are issues if you have your own
> repository with lots of local commits but the intention was for them
> to be used against the main repositories.
I'm not 100% sure but I think the revision numbers are in date order,
so if someone pushes a bunch of branch commits that interleave with
the main trunk then the numbers will change.
Cheers,
Gary
--
http://gbenson.net/
More information about the distro-pkg-dev
mailing list