From: Michał Górny Date: Mon, 12 Sep 2011 12:49:44 +0000 (+0000) Subject: Issue deprecation warning for devs on use. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8e7547088b02980585552bd37cbdcc21d2287805;p=gentoo.git Issue deprecation warning for devs on use. --- diff --git a/eclass/git.eclass b/eclass/git.eclass index 90f21be114ef..5dfd59bb8b48 100644 --- a/eclass/git.eclass +++ b/eclass/git.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.56 2011/08/22 04:46:31 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.57 2011/09/12 12:49:44 mgorny Exp $ # @DEPRECATED # This eclass has been superseded by git-2 eclass. @@ -195,6 +195,10 @@ git_branch() { git_fetch() { debug-print-function ${FUNCNAME} "$@" + eqawarn "git.eclass is deprecated." + eqawarn "Please update your ebuilds to use git-2 instead. For details, see" + eqawarn "http://archives.gentoo.org/gentoo-dev/msg_b7ba363cae580845819ae3501fb157e9.xml" + local GIT_DIR EGIT_CLONE_DIR oldsha1 cursha1 extra_clone_opts upstream_branch [[ -z ${EGIT_HAS_SUBMODULES} ]] && export GIT_DIR