Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 199719 Details for
Bug 279769
mercurial.eclass: improved working directory creation with respect to dependent ebuilds
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cleanup, additional --repository switch for archive
mercurial.eclass.diff (text/plain), 1.37 KB, created by
Matthias K.
on 2009-07-31 10:53:48 UTC
(
hide
)
Description:
cleanup, additional --repository switch for archive
Filename:
MIME Type:
Creator:
Matthias K.
Created:
2009-07-31 10:53:48 UTC
Size:
1.37 KB
patch
obsolete
>--- /usr/portage/eclass/mercurial.eclass 2009-07-15 21:22:01.213548921 +0200 >+++ /usr/local/portage/eclass/mercurial.eclass 2009-07-31 12:45:58.427529552 +0200 >@@ -40,6 +40,15 @@ > # Command used to perform initial repository clone. > [[ -z "${EHG_CLONE_CMD}" ]] && EHG_CLONE_CMD="hg clone --quiet --pull --noupdate" > >+# @ECLASS-VARIABLE: EHG_WC_OPT >+# @DESCRIPTION: >+# Working Copy creation Method >+# >+# 'hg archive' speeds up the working directory creation and reduces >+# the amount of disk/ramdisk space used. >+ >+[[ -z "${EHG_WC_OPT}" ]] && EHG_WC_OPT="clone" >+ > # @ECLASS-VARIABLE: EHG_PULL_CMD > # @DESCRIPTION: > # Command used to update repository. >@@ -96,11 +105,20 @@ > > # Checkout working copy: > einfo "Creating working directory in ${WORKDIR}/${module} (revision: ${EHG_REVISION})" >- hg clone \ >- --quiet \ >- --rev="${EHG_REVISION}" \ >- "${hg_src_dir}/${EHG_PROJECT}/${module}" \ >- "${WORKDIR}/${module}" || die "hg clone failed" >+ case ${EHG_WC_OPT} in >+ clone|archive) >+ local repo_prefix >+ [ "${EHG_WC_OPT}" = "archive" ] && repo_prefix="--repository" || repo_prefix="" >+ hg ${EHG_WC_OPT} \ >+ --quiet \ >+ --rev="${EHG_REVISION}" \ >+ ${repo_prefix} "${hg_src_dir}/${EHG_PROJECT}/${module}" \ >+ "${WORKDIR}/${module}" || die "hg ${EHG_WC_OPT} failed" >+ ;; >+ *) >+ die "invalid creation method issued: ${EHG_WC_OPT}" >+ ;; >+ esac > } > > # @FUNCTION: mercurial_src_unpack
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 279769
:
199710
|
199715
|
199717
| 199719 |
221317
|
221939
|
221941