1 |
robbat2 10/08/24 16:49:18 |
2 |
|
3 |
Modified: mercurial.eclass |
4 |
Log: |
5 |
Include Hg revision info in the einfo output for Hg live builds, to allow reproducability. |
6 |
|
7 |
Revision Changes Path |
8 |
1.13 eclass/mercurial.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mercurial.eclass?rev=1.13&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mercurial.eclass?rev=1.13&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mercurial.eclass?r1=1.12&r2=1.13 |
13 |
|
14 |
Index: mercurial.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v |
17 |
retrieving revision 1.12 |
18 |
retrieving revision 1.13 |
19 |
diff -p -w -b -B -u -u -r1.12 -r1.13 |
20 |
--- mercurial.eclass 2 Apr 2010 18:29:39 -0000 1.12 |
21 |
+++ mercurial.eclass 24 Aug 2010 16:49:18 -0000 1.13 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2006 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v 1.12 2010/04/02 18:29:39 nelchael Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v 1.13 2010/08/24 16:49:18 robbat2 Exp $ |
27 |
|
28 |
# @ECLASS: mercurial.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -116,12 +116,19 @@ function mercurial_fetch { |
31 |
fi |
32 |
|
33 |
# Checkout working copy: |
34 |
- einfo "Creating working directory in ${WORKDIR}/${module} (revision: ${EHG_REVISION})" |
35 |
+ einfo "Creating working directory in ${WORKDIR}/${module} (target revision: ${EHG_REVISION})" |
36 |
hg clone \ |
37 |
${EHG_QUIET_CMD_OPT} \ |
38 |
--rev="${EHG_REVISION}" \ |
39 |
"${EHG_STORE_DIR}/${EHG_PROJECT}/${module}" \ |
40 |
"${WORKDIR}/${module}" || die "hg clone failed" |
41 |
+ # An exact revision helps a lot for testing purposes, so have some output... |
42 |
+ # id num branch |
43 |
+ # fd6e32d61721 6276 default |
44 |
+ local HG_REVDATA=($(hg identify -b -i "${WORKDIR}/${module}")) |
45 |
+ local HG_REV_ID=${HG_REVDATA[0]} |
46 |
+ local HG_REV_BRANCH=${HG_REVDATA[1]} |
47 |
+ einfo "Work directory: ${WORKDIR}/${module} global id: ${HG_REV_ID} branch: ${HG_REV_BRANCH}" |
48 |
} |
49 |
|
50 |
# @FUNCTION: mercurial_src_unpack |