1 |
On 08/23/10 23:23, Robin H. Johnson wrote: |
2 |
> The existing EHG_REVISION is the target revision, usually 'tip', so it |
3 |
> doesn't help us reproduce a bug if the upstream tree has moved since log |
4 |
> creation. |
5 |
> |
6 |
> Example output: |
7 |
> * Work directory: /var/tmp/portage/.... global id: 44cff02c8042 branch: default |
8 |
> |
9 |
> Signed-off-by: Robin H. Johnson <robbat2@g.o> |
10 |
> |
11 |
> Index: mercurial.eclass |
12 |
> =================================================================== |
13 |
> RCS file: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v |
14 |
> retrieving revision 1.12 |
15 |
> diff -p -w -b -B -u -r1.12 mercurial.eclass |
16 |
> --- mercurial.eclass 2 Apr 2010 18:29:39 -0000 1.12 |
17 |
> +++ mercurial.eclass 23 Aug 2010 21:20:41 -0000 |
18 |
> @@ -116,12 +116,20 @@ function mercurial_fetch { |
19 |
> fi |
20 |
> |
21 |
> # Checkout working copy: |
22 |
> - einfo "Creating working directory in ${WORKDIR}/${module} (revision: ${EHG_REVISION})" |
23 |
> + einfo "Creating working directory in ${WORKDIR}/${module} (target revision: ${EHG_REVISION})" |
24 |
> hg clone \ |
25 |
> ${EHG_QUIET_CMD_OPT} \ |
26 |
> --rev="${EHG_REVISION}" \ |
27 |
> "${EHG_STORE_DIR}/${EHG_PROJECT}/${module}" \ |
28 |
> "${WORKDIR}/${module}" || die "hg clone failed" |
29 |
> + # An exact revision helps a lot for testing purposes, so have some output... |
30 |
> + # id num branch |
31 |
> + # fd6e32d61721 6276 default |
32 |
> + local HG_REVDATA=($(hg identify -n -b -i "${WORKDIR}/${module}")) |
33 |
> + local HG_REV_ID=${HG_REVDATA[0]} |
34 |
> + local HG_REV_NUM=${HG_REVDATA[1]} |
35 |
> + local HG_REV_BRANCH=${HG_REVDATA[2]} |
36 |
> + einfo "Work directory: ${WORKDIR}/${module} global id: ${HG_REV_ID} branch: ${HG_REV_BRANCH}" |
37 |
> } |
38 |
> |
39 |
> # @FUNCTION: mercurial_src_unpack |
40 |
> |
41 |
|
42 |
+1 Robin :) Ship it! |
43 |
|
44 |
-- |
45 |
Krzysztof Pawlik <nelchael at gentoo.org> key id: 0xF6A80E46 |
46 |
desktop-misc, java, apache, ppc, vim, kernel, python... |