diff options
author | 2013-01-22 07:29:02 +0000 | |
---|---|---|
committer | 2013-01-22 07:29:02 +0000 | |
commit | b04aa73607528168884aa3cc69003b8a2bccb55a (patch) | |
tree | 7ae325e73c32aa21f5d82d0046afffe587d8f6ac /eclass/cvs.eclass | |
parent | drop ECVS_SUBDIR as nothing in the tree uses it (diff) | |
download | gentoo-2-b04aa73607528168884aa3cc69003b8a2bccb55a.tar.gz gentoo-2-b04aa73607528168884aa3cc69003b8a2bccb55a.tar.bz2 gentoo-2-b04aa73607528168884aa3cc69003b8a2bccb55a.zip |
add support for checking out via a date string (-D) by Thomas Rausch #443014
Diffstat (limited to 'eclass/cvs.eclass')
-rw-r--r-- | eclass/cvs.eclass | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass index d7f69240cb9b..c06ac199cb99 100644 --- a/eclass/cvs.eclass +++ b/eclass/cvs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.80 2013/01/22 07:26:25 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.81 2013/01/22 07:29:02 vapier Exp $ # @ECLASS: cvs.eclass # @MAINTAINER: @@ -117,6 +117,12 @@ inherit eutils # several directory levels, i.e. "foo/bar/baz" #[[ -z ${ECVS_MODULE} ]] && die "$ECLASS: error: ECVS_MODULE not set, cannot continue" +# @ECLASS-VARIABLE: ECVS_DATE +# @DEFAULT_UNSET +# @DESCRIPTION: +# The date of the checkout. See the -D date_spec option in the cvs +# man page for more details. + # @ECLASS-VARIABLE: ECVS_BRANCH # @DEFAULT_UNSET # @DESCRIPTION: @@ -239,6 +245,11 @@ cvs_fetch() { ECVS_UP_OPTS+=" -C" fi + if [[ -n ${ECVS_DATE} ]] ; then + ECVS_CO_OPTS+=" -D ${ECVS_DATE}" + ECVS_UP_OPTS+=" -D ${ECVS_DATE}" + fi + # It would be easiest to always be in "run-as mode", logic-wise, # if sudo didn't ask for a password even when sudo'ing to `whoami`. |