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

(-)file_not_specified_in_diff (-6 / +20 lines)
Line  Link Here
0
-- mercurial.eclass
0
++ mercurial.eclass
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
# If 'nohistory' is set, hg archive will be used instead of hg clone
48
[[ -z "${EHG_WC_OPT}" ]] && EHG_WC_OPT="clone"
49
43
# @ECLASS-VARIABLE: EHG_PULL_CMD
50
# @ECLASS-VARIABLE: EHG_PULL_CMD
44
# @DESCRIPTION:
51
# @DESCRIPTION:
45
# Command used to update repository.
52
# Command used to update repository.
Lines 96-106 Link Here
96
103
97
	# Checkout working copy:
104
	# Checkout working copy:
98
	einfo "Creating working directory in ${WORKDIR}/${module} (revision: ${EHG_REVISION})"
105
	einfo "Creating working directory in ${WORKDIR}/${module} (revision: ${EHG_REVISION})"
99
	hg clone \
106
	case ${EHG_WC_OPT} in
100
		--quiet \
107
		clone|nohistory)
101
		--rev="${EHG_REVISION}" \
108
			hg ${EHG_WC_OPT} \
102
		"${hg_src_dir}/${EHG_PROJECT}/${module}" \
109
				--quiet \
103
		"${WORKDIR}/${module}" || die "hg clone failed"
110
				--rev="${EHG_REVISION}" \
111
				"${hg_src_dir}/${EHG_PROJECT}/${module}" \
112
				"${WORKDIR}/${module}" || die "hg ${EHG_WC_OPT} failed"
113
		;;
114
		*)
115
			die "invalid creation method issued: ${EHG_WC_OPT}"
116
		;;
117
	esac
104
}
118
}
105
119
106
# @FUNCTION: mercurial_src_unpack
120
# @FUNCTION: mercurial_src_unpack

Return to bug 279769