[Yt-svn] yt: Another attempt at fixing the timeout/abort problem by stagi...

hg at spacepope.org hg at spacepope.org
Sat Dec 4 21:16:21 PST 2010


hg Repository: yt
details:   yt/rev/551079106734
changeset: 3573:551079106734
user:      Matthew Turk <matthewturk at gmail.com>
date:
Sat Dec 04 21:16:17 2010 -0800
description:
Another attempt at fixing the timeout/abort problem by staging the bulk of the
hg changesets in a downloadable bundle.

diffstat:

 doc/install_script.sh |  17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r f165b6dffbc0 -r 551079106734 doc/install_script.sh
--- a/doc/install_script.sh	Thu Dec 02 16:41:35 2010 -0800
+++ b/doc/install_script.sh	Sat Dec 04 21:16:17 2010 -0800
@@ -240,6 +240,7 @@
 get_enzotools ipython-0.10.tar.gz
 get_enzotools h5py-1.2.0.tar.gz
 get_enzotools Cython-0.13.tar.gz
+get_enzotools yt.hg
 
 if [ $INST_BZLIB -eq 1 ]
 then
@@ -353,11 +354,19 @@
         YT_DIR=`dirname $ORIG_PWD`
     elif [ ! -e yt-hg ] 
     then
-        # Note that we clone the entire repository, not just the branch in
-        # question.  We update to the correct branch momentarily...
-        ( ${HG_EXEC} --debug clone --pull http://hg.enzotools.org/yt/ ./yt-hg 2>&1 ) 1>> ${LOG_FILE}
         YT_DIR="$PWD/yt-hg/"
-        ( ${HG_EXEC} up -R ${YT_DIR} -C ${BRANCH} 2>&1 ) 1>> ${LOG_FILE}
+        # Recently the hg server has had some issues with timeouts.  In lieu of
+        # a new webserver, we are now moving to a three-stage process.
+        # First we clone the repo, but only up to r0.
+        ( ${HG_EXEC} --debug clone -r0 http://hg.enzotools.org/yt/ ./yt-hg 2>&1 ) 1>> ${LOG_FILE}
+        # Now we unbundle our previously downloaded bundle of changesets.
+        # This bundle has been created to include most of the recent
+        # changesets, which should avoid any problematic timeouts.
+        ( ${HG_EXEC} -R ${YT_DIR} unbundle yt.hg 2>&1 ) 1>> ${LOG_FILE}
+        # Now we pull new changes
+        ( ${HG_EXEC} -R ${YT_DIR} pull 2>&1 ) 1>> ${LOG_FILE}
+        # Now we update to the branch we're interested in.
+        ( ${HG_EXEC} -R ${YT_DIR} up -C ${BRANCH} 2>&1 ) 1>> ${LOG_FILE}
     elif [ -e yt-hg ] 
     then
         YT_DIR="$PWD/yt-hg/"



More information about the yt-svn mailing list