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

Diff of /eclass/mercurial.eclass

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

Revision 1.15 Revision 1.17
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2011 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.15 2010/11/17 18:42:03 nelchael Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v 1.17 2011/12/27 17:55:12 fauli 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>
25 25
26# @ECLASS-VARIABLE: EHG_REVISION 26# @ECLASS-VARIABLE: EHG_REVISION
27# @DESCRIPTION: 27# @DESCRIPTION:
28# Create working directory for specified revision, defaults to tip. 28# Create working directory for specified revision, defaults to tip.
29# 29#
30# EHG_REVISION is passed as a value for --rev parameter, so it can be more than 30# EHG_REVISION is passed as a value for --updaterev parameter, so it can be more
31# just a revision, please consult `hg help revisions' for more details. 31# than just a revision, please consult `hg help revisions' for more details.
32[[ -z "${EHG_REVISION}" ]] && EHG_REVISION="tip" 32[[ -z "${EHG_REVISION}" ]] && EHG_REVISION="tip"
33 33
34# @ECLASS-VARIABLE: EHG_STORE_DIR 34# @ECLASS-VARIABLE: EHG_STORE_DIR
35# @DESCRIPTION: 35# @DESCRIPTION:
36# Mercurial sources store directory. Users may override this in /etc/make.conf 36# Mercurial sources store directory. Users may override this in /etc/make.conf
118 118
119 # Checkout working copy: 119 # Checkout working copy:
120 einfo "Creating working directory in ${sourcedir} (target revision: ${EHG_REVISION})" 120 einfo "Creating working directory in ${sourcedir} (target revision: ${EHG_REVISION})"
121 hg clone \ 121 hg clone \
122 ${EHG_QUIET_CMD_OPT} \ 122 ${EHG_QUIET_CMD_OPT} \
123 --rev="${EHG_REVISION}" \ 123 --updaterev="${EHG_REVISION}" \
124 "${EHG_STORE_DIR}/${EHG_PROJECT}/${module}" \ 124 "${EHG_STORE_DIR}/${EHG_PROJECT}/${module}" \
125 "${sourcedir}" || die "hg clone failed" 125 "${sourcedir}" || die "hg clone failed"
126 # An exact revision helps a lot for testing purposes, so have some output... 126 # An exact revision helps a lot for testing purposes, so have some output...
127 # id num branch 127 # id num branch
128 # fd6e32d61721 6276 default 128 # fd6e32d61721 6276 default

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20