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

Diff of /eclass/subversion.eclass

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

Revision 1.55 Revision 1.56
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.55 2008/02/21 16:33:09 zlin Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.56 2008/02/27 12:54:35 zlin 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>
225 elif [[ -n ${ESVN_OFFLINE} ]]; then 225 elif [[ -n ${ESVN_OFFLINE} ]]; then
226 subversion_wc_info "${repo_uri}" || die "${ESVN}: unknown problem occurred while accessing working copy." 226 subversion_wc_info "${repo_uri}" || die "${ESVN}: unknown problem occurred while accessing working copy."
227 if [[ -n ${ESVN_REVISION} && ${ESVN_REVISION} != ${ESVN_WC_REVISION} ]]; then 227 if [[ -n ${ESVN_REVISION} && ${ESVN_REVISION} != ${ESVN_WC_REVISION} ]]; then
228 die "${ESVN}: You requested off-line updating and revision ${ESVN_REVISION} but only revision ${ESVN_WC_REVISION} is available locally." 228 die "${ESVN}: You requested off-line updating and revision ${ESVN_REVISION} but only revision ${ESVN_WC_REVISION} is available locally."
229 fi 229 fi
230 einfo "Fetching disabled: Using existing repository copy" 230 einfo "Fetching disabled: Using existing repository copy at revision ${ESVN_WC_REVISION}."
231 else 231 else
232 subversion_wc_info "${repo_uri}" || die "${ESVN}: unknown problem occurred while accessing working copy." 232 subversion_wc_info "${repo_uri}" || die "${ESVN}: unknown problem occurred while accessing working copy."
233 233
234 local esvn_up_freq= 234 local esvn_up_freq=
235 if [[ -n ${ESVN_UP_FREQ} ]]; then 235 if [[ -n ${ESVN_UP_FREQ} ]]; then
236 if [[ -n ${ESVN_UP_FREQ//[[:digit:]]} ]]; then 236 if [[ -n ${ESVN_UP_FREQ//[[:digit:]]} ]]; then
237 die "${ESVN}: ESVN_UP_FREQ must be an integer value corresponding to the minimum number of hours between svn up." 237 die "${ESVN}: ESVN_UP_FREQ must be an integer value corresponding to the minimum number of hours between svn up."
238 elif [[ -z $(find "${wc_path}/.svn/entries" -mmin "+$((ESVN_UP_FREQ*60))") ]]; then 238 elif [[ -z $(find "${wc_path}/.svn/entries" -mmin "+$((ESVN_UP_FREQ*60))") ]]; then
239 einfo "Fetching disabled since ${ESVN_UP_FREQ} hours hasn't passed since last update." 239 einfo "Fetching disabled since ${ESVN_UP_FREQ} hours has not passed since last update."
240 einfo "Using existing repository copy at revision ${ESVN_WC_REVISION}."
240 esvn_up_freq=no_update 241 esvn_up_freq=no_update
241 fi 242 fi
242 fi 243 fi
243 244
244 if [[ -z ${esvn_up_freq} ]]; then 245 if [[ -z ${esvn_up_freq} ]]; then

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56

  ViewVC Help
Powered by ViewVC 1.1.20