Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: "Robin H. Johnson" <robbat2@g.o>
Subject: [RFC ECLASS PATCH] Include exact Hg revision data for repeatability from logs.
Date: Mon, 23 Aug 2010 21:23:27 +0000
The existing EHG_REVISION is the target revision, usually 'tip', so it
doesn't help us reproduce a bug if the upstream tree has moved since log
creation.

Example output:
* Work directory: /var/tmp/portage/.... global id: 44cff02c8042 branch: default

Signed-off-by: Robin H. Johnson <robbat2@g.o>

Index: mercurial.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v
retrieving revision 1.12
diff -p -w -b -B -u -r1.12 mercurial.eclass
--- mercurial.eclass	2 Apr 2010 18:29:39 -0000	1.12
+++ mercurial.eclass	23 Aug 2010 21:20:41 -0000
@@ -116,12 +116,20 @@ function mercurial_fetch {
 	fi
 
 	# Checkout working copy:
-	einfo "Creating working directory in ${WORKDIR}/${module} (revision: ${EHG_REVISION})"
+	einfo "Creating working directory in ${WORKDIR}/${module} (target revision: ${EHG_REVISION})"
 	hg clone \
 		${EHG_QUIET_CMD_OPT} \
 		--rev="${EHG_REVISION}" \
 		"${EHG_STORE_DIR}/${EHG_PROJECT}/${module}" \
 		"${WORKDIR}/${module}" || die "hg clone failed"
+	# An exact revision helps a lot for testing purposes, so have some output...
+	# id           num  branch
+	# fd6e32d61721 6276 default
+	local HG_REVDATA=($(hg identify -n -b -i "${WORKDIR}/${module}"))
+	local HG_REV_ID=${HG_REVDATA[0]}
+	local HG_REV_NUM=${HG_REVDATA[1]}
+	local HG_REV_BRANCH=${HG_REVDATA[2]}
+	einfo "Work directory: ${WORKDIR}/${module} global id: ${HG_REV_ID} branch: ${HG_REV_BRANCH}"
 }
 
 # @FUNCTION: mercurial_src_unpack

-- 
Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail     : robbat2@g.o
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85
Attachment:
pgpt0b999OlDz.pgp (PGP signature)
Replies:
Re: [RFC ECLASS PATCH] Include exact Hg revision data for repeatability from logs.
-- Dirkjan Ochtman
Re: [RFC ECLASS PATCH] Include exact Hg revision data for repeatability from logs.
-- Krzysztof Pawlik
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: gentoo-x86 commit in perl-core/IO-Compress:
Next by thread:
Re: [RFC ECLASS PATCH] Include exact Hg revision data for repeatability from logs.
Previous by date:
Re: The future of sys-apps/openrc in Gentoo
Next by date:
Re: [rfc] Making a Makefile respect custom CFLAGS


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.