/[gentoo-x86]/eclass/subversion.eclass
Gentoo

Diff of /eclass/subversion.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.47 Revision 1.48
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.47 2008/02/20 17:55:27 cardoe Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.48 2008/02/20 19:18:53 cardoe Exp $
4 4
5# @ECLASS: subversion.eclass 5# @ECLASS: subversion.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Akinori Hattori <hattya@gentoo.org> 7# Akinori Hattori <hattya@gentoo.org>
8# Bo ├śrsted Andresen <zlin@gentoo.org> 8# Bo ├śrsted Andresen <zlin@gentoo.org>
39 39
40# @ECLASS-VARIABLE: ESVN_UPDATE_CMD 40# @ECLASS-VARIABLE: ESVN_UPDATE_CMD
41# @DESCRIPTION: 41# @DESCRIPTION:
42# subversion update command 42# subversion update command
43ESVN_UPDATE_CMD="svn update" 43ESVN_UPDATE_CMD="svn update"
44
45# @ECLASS-VARIABLE: ESVN_SWITCH_CMD
46# @DESCRIPTION:
47# subversion switch command
48ESVN_SWITCH_CMD="svn switch"
44 49
45# @ECLASS-VARIABLE: ESVN_OPTIONS 50# @ECLASS-VARIABLE: ESVN_OPTIONS
46# @DESCRIPTION: 51# @DESCRIPTION:
47# the options passed to checkout or update. If you want a specific revision see 52# the options passed to checkout or update. If you want a specific revision see
48# ESVN_REPO_URI instead of using -rREV. 53# ESVN_REPO_URI instead of using -rREV.
192 197
193 else 198 else
194 subversion_wc_info "${repo_uri}" || die "${ESVN}: unknown problem occurred while accessing working copy." 199 subversion_wc_info "${repo_uri}" || die "${ESVN}: unknown problem occurred while accessing working copy."
195 200
196 if [[ ${ESVN_WC_URL} != $(subversion__get_repository_uri "${repo_uri}") ]]; then 201 if [[ ${ESVN_WC_URL} != $(subversion__get_repository_uri "${repo_uri}") ]]; then
197 die "${ESVN}: ESVN_REPO_URI (or specified URI) and working copy's URL are not matched." 202 einfo "suversion switch start -->"
203 einfo " old repository: ${ESVN_WC_URL}@${ESVN_WC_REVISION}"
204 einfo " new repository: ${repo_uri}${revision:+@}${revision}"
205
206 debug-print "${FUNCNAME}: ${ESVN_SWITCH_CMD} ${options} ${repo_uri}"
207
208 cd "${wc_path}" || die "${ESVN}: can't chdir to ${wc_path}"
209 ${ESVN_SWITCH_CMD} ${options} ${repo_uri} || die "${ESVN}: can't update from ${repo_uri}"
210 else
211 # update working copy
212 einfo "subversion update start -->"
213 einfo " repository: ${repo_uri}${revision:+@}${revision}"
214
215 debug-print "${FUNCNAME}: ${ESVN_UPDATE_CMD} ${options}"
216
217 cd "${wc_path}" || die "${ESVN}: can't chdir to ${wc_path}"
218 ${ESVN_UPDATE_CMD} ${options} || die "${ESVN}: can't update from ${repo_uri}."
198 fi 219 fi
199
200 # update working copy
201 einfo "subversion update start -->"
202 einfo " repository: ${repo_uri}${revision:+@}${revision}"
203
204 debug-print "${FUNCNAME}: ${ESVN_UPDATE_CMD} ${options}"
205
206 cd "${wc_path}" || die "${ESVN}: can't chdir to ${wc_path}"
207 ${ESVN_UPDATE_CMD} ${options} || die "${ESVN}: can't update from ${repo_uri}."
208 220
209 fi 221 fi
210 222
211 einfo " working copy: ${wc_path}" 223 einfo " working copy: ${wc_path}"
212 224

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

  ViewVC Help
Powered by ViewVC 1.1.20