| 1 | # Copyright 1999-2006 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v 1.13 2010/08/24 16:49:18 robbat2 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v 1.14 2010/10/26 19:04:44 nelchael Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: mercurial.eclass |
5 | # @ECLASS: mercurial.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Krzysztof Pawlik <nelchael@gentoo.org> |
7 | # Krzysztof Pawlik <nelchael@gentoo.org> |
| 8 | # Dirkjan Ochtman <djc@gentoo.org> |
8 | # Dirkjan Ochtman <djc@gentoo.org> |
| … | |
… | |
| 124 | "${WORKDIR}/${module}" || die "hg clone failed" |
124 | "${WORKDIR}/${module}" || die "hg clone failed" |
| 125 | # An exact revision helps a lot for testing purposes, so have some output... |
125 | # An exact revision helps a lot for testing purposes, so have some output... |
| 126 | # id num branch |
126 | # id num branch |
| 127 | # fd6e32d61721 6276 default |
127 | # fd6e32d61721 6276 default |
| 128 | local HG_REVDATA=($(hg identify -b -i "${WORKDIR}/${module}")) |
128 | local HG_REVDATA=($(hg identify -b -i "${WORKDIR}/${module}")) |
| 129 | local HG_REV_ID=${HG_REVDATA[0]} |
129 | export HG_REV_ID=${HG_REVDATA[0]} |
| 130 | local HG_REV_BRANCH=${HG_REVDATA[1]} |
130 | local HG_REV_BRANCH=${HG_REVDATA[1]} |
| 131 | einfo "Work directory: ${WORKDIR}/${module} global id: ${HG_REV_ID} branch: ${HG_REV_BRANCH}" |
131 | einfo "Work directory: ${WORKDIR}/${module} global id: ${HG_REV_ID} branch: ${HG_REV_BRANCH}" |
| 132 | } |
132 | } |
| 133 | |
133 | |
| 134 | # @FUNCTION: mercurial_src_unpack |
134 | # @FUNCTION: mercurial_src_unpack |