summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2011-08-03 19:01:16 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2011-08-03 19:01:16 +0000
commit055641a8f4566a873b2f2e4594bdc20ec6c74893 (patch)
tree04b512a987cc5dfe7a7e8a40f8aae0dc3c166ea6 /eclass
parentVersion bump. (diff)
downloadhistorical-055641a8f4566a873b2f2e4594bdc20ec6c74893.tar.gz
historical-055641a8f4566a873b2f2e4594bdc20ec6c74893.tar.bz2
historical-055641a8f4566a873b2f2e4594bdc20ec6c74893.zip
Use --updaterev instead of --rev, thanks to Michał Górny (mgorny@gentoo.org), see bug #367481.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mercurial.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/mercurial.eclass b/eclass/mercurial.eclass
index 3ae1d53c7c97..9aa5e876e59b 100644
--- a/eclass/mercurial.eclass
+++ b/eclass/mercurial.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v 1.15 2010/11/17 18:42:03 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v 1.16 2011/08/03 19:01:16 nelchael Exp $
# @ECLASS: mercurial.eclass
# @MAINTAINER:
@@ -27,8 +27,8 @@ DEPEND="dev-vcs/mercurial"
# @DESCRIPTION:
# Create working directory for specified revision, defaults to tip.
#
-# EHG_REVISION is passed as a value for --rev parameter, so it can be more than
-# just a revision, please consult `hg help revisions' for more details.
+# EHG_REVISION is passed as a value for --updaterev parameter, so it can be more
+# than just a revision, please consult `hg help revisions' for more details.
[[ -z "${EHG_REVISION}" ]] && EHG_REVISION="tip"
# @ECLASS-VARIABLE: EHG_STORE_DIR
@@ -120,7 +120,7 @@ function mercurial_fetch {
einfo "Creating working directory in ${sourcedir} (target revision: ${EHG_REVISION})"
hg clone \
${EHG_QUIET_CMD_OPT} \
- --rev="${EHG_REVISION}" \
+ --updaterev="${EHG_REVISION}" \
"${EHG_STORE_DIR}/${EHG_PROJECT}/${module}" \
"${sourcedir}" || die "hg clone failed"
# An exact revision helps a lot for testing purposes, so have some output...