summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2011-02-07 22:54:23 +0000
committerUlrich Müller <ulm@gentoo.org>2011-02-07 22:54:23 +0000
commitcee0f1a03e22a573faedc32d5a5cb1fa7462191c (patch)
tree1e25a8d4736c41784d0b9a5e2cfca75a8c747e93 /eclass/bzr.eclass
parentMove old checkout out of the way, instead of removing it. (diff)
downloademacs-cee0f1a03e22a573faedc32d5a5cb1fa7462191c.tar.gz
emacs-cee0f1a03e22a573faedc32d5a5cb1fa7462191c.tar.bz2
emacs-cee0f1a03e22a573faedc32d5a5cb1fa7462191c.zip
Save EBZR_WC_PATH in environment, bug 311101.
More cookies for eclass-manpages. svn path=/emacs-overlay/; revision=1610
Diffstat (limited to 'eclass/bzr.eclass')
-rw-r--r--eclass/bzr.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass
index e91978e..0af7420 100644
--- a/eclass/bzr.eclass
+++ b/eclass/bzr.eclass
@@ -74,6 +74,7 @@ esac
# @ECLASS-VARIABLE: EBZR_REPO_URI
# @DEFAULT_UNSET
+# @REQUIRED
# @DESCRIPTION:
# The repository URI for the source package.
#
@@ -135,6 +136,7 @@ esac
: ${EBZR_OFFLINE:=${ESCM_OFFLINE}}
# @FUNCTION: bzr_initial_fetch
+# @USAGE: <repository URI> <branch directory>
# @DESCRIPTION:
# Internal function, retrieves the source code from a repository for the
# first time, using ${EBZR_FETCH_CMD}.
@@ -154,6 +156,7 @@ bzr_initial_fetch() {
}
# @FUNCTION: bzr_update
+# @USAGE: <repository URI> <branch directory>
# @DESCRIPTION:
# Internal function, updates the source code from a repository, using
# ${EBZR_UPDATE_CMD}.
@@ -236,7 +239,10 @@ bzr_fetch() {
fi
cd "${branch_dir}" || die "${EBZR}: can't chdir to ${branch_dir}"
+
+ # Save some variables in environment. #311101
export EBZR_REVNO=$(${EBZR_REVNO_CMD})
+ export EBZR_WC_PATH=${branch_dir}
einfo "exporting ..."
${EBZR_EXPORT_CMD} ${EBZR_REVISION:+-r ${EBZR_REVISION}} \