Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 279769 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/eclass/mercurial.eclass (-5 / +23 lines)
Lines 40-45 Link Here
40
# Command used to perform initial repository clone.
40
# Command used to perform initial repository clone.
41
[[ -z "${EHG_CLONE_CMD}" ]] && EHG_CLONE_CMD="hg clone --quiet --pull --noupdate"
41
[[ -z "${EHG_CLONE_CMD}" ]] && EHG_CLONE_CMD="hg clone --quiet --pull --noupdate"
42
42
43
# @ECLASS-VARIABLE: EHG_WC_OPT
44
# @DESCRIPTION:
45
# Working Copy creation Method
46
#
47
# 'hg archive' speeds up the working directory creation and reduces
48
# the amount of disk/ramdisk space used.
49
50
[[ -z "${EHG_WC_OPT}" ]] && EHG_WC_OPT="clone"
51
43
# @ECLASS-VARIABLE: EHG_PULL_CMD
52
# @ECLASS-VARIABLE: EHG_PULL_CMD
44
# @DESCRIPTION:
53
# @DESCRIPTION:
45
# Command used to update repository.
54
# Command used to update repository.
Lines 96-106 Link Here
96
105
97
	# Checkout working copy:
106
	# Checkout working copy:
98
	einfo "Creating working directory in ${WORKDIR}/${module} (revision: ${EHG_REVISION})"
107
	einfo "Creating working directory in ${WORKDIR}/${module} (revision: ${EHG_REVISION})"
99
	hg clone \
108
	case ${EHG_WC_OPT} in
100
		--quiet \
109
		clone|archive)
101
		--rev="${EHG_REVISION}" \
110
			local repo_prefix
102
		"${hg_src_dir}/${EHG_PROJECT}/${module}" \
111
			[ "${EHG_WC_OPT}" = "archive" ] && repo_prefix="--repository" || repo_prefix=""
103
		"${WORKDIR}/${module}" || die "hg clone failed"
112
			hg ${EHG_WC_OPT} \
113
				--quiet \
114
				--rev="${EHG_REVISION}" \
115
				${repo_prefix} "${hg_src_dir}/${EHG_PROJECT}/${module}" \
116
				"${WORKDIR}/${module}" || die "hg ${EHG_WC_OPT} failed"
117
		;;
118
		*)
119
			die "invalid creation method issued: ${EHG_WC_OPT}"
120
		;;
121
	esac
104
}
122
}
105
123
106
# @FUNCTION: mercurial_src_unpack
124
# @FUNCTION: mercurial_src_unpack

Return to bug 279769