/[gentoo-x86]/eclass/mercurial.eclass
Gentoo

Diff of /eclass/mercurial.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.12 Revision 1.13
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.12 2010/04/02 18:29:39 nelchael Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v 1.13 2010/08/24 16:49:18 robbat2 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>
114 cd "${module}" || die "failed to cd to ${module}" 114 cd "${module}" || die "failed to cd to ${module}"
115 ${EHG_PULL_CMD} || die "update failed" 115 ${EHG_PULL_CMD} || die "update failed"
116 fi 116 fi
117 117
118 # Checkout working copy: 118 # Checkout working copy:
119 einfo "Creating working directory in ${WORKDIR}/${module} (revision: ${EHG_REVISION})" 119 einfo "Creating working directory in ${WORKDIR}/${module} (target revision: ${EHG_REVISION})"
120 hg clone \ 120 hg clone \
121 ${EHG_QUIET_CMD_OPT} \ 121 ${EHG_QUIET_CMD_OPT} \
122 --rev="${EHG_REVISION}" \ 122 --rev="${EHG_REVISION}" \
123 "${EHG_STORE_DIR}/${EHG_PROJECT}/${module}" \ 123 "${EHG_STORE_DIR}/${EHG_PROJECT}/${module}" \
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...
126 # id num branch
127 # fd6e32d61721 6276 default
128 local HG_REVDATA=($(hg identify -b -i "${WORKDIR}/${module}"))
129 local HG_REV_ID=${HG_REVDATA[0]}
130 local HG_REV_BRANCH=${HG_REVDATA[1]}
131 einfo "Work directory: ${WORKDIR}/${module} global id: ${HG_REV_ID} branch: ${HG_REV_BRANCH}"
125} 132}
126 133
127# @FUNCTION: mercurial_src_unpack 134# @FUNCTION: mercurial_src_unpack
128# @DESCRIPTION: 135# @DESCRIPTION:
129# The mercurial src_unpack function, which will be exported. 136# The mercurial src_unpack function, which will be exported.

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20