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 / +21 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
			hg ${EHG_WC_OPT} \
102
		"${hg_src_dir}/${EHG_PROJECT}/${module}" \
111
				--quiet \
103
		"${WORKDIR}/${module}" || die "hg clone failed"
112
				--rev="${EHG_REVISION}" \
113
				"${hg_src_dir}/${EHG_PROJECT}/${module}" \
114
				"${WORKDIR}/${module}" || die "hg ${EHG_WC_OPT} failed"
115
		;;
116
		*)
117
			die "invalid creation method issued: ${EHG_WC_OPT}"
118
		;;
119
	esac
104
}
120
}
105
121
106
# @FUNCTION: mercurial_src_unpack
122
# @FUNCTION: mercurial_src_unpack

Return to bug 279769