changeset 635:dd037cebb1da

7170091: Fix missing wait between repo cloning in hgforest.sh Reviewed-by: strarup
author ohair
date Fri, 08 Jun 2012 17:25:46 -0700
parents a2d8b628b24b
children d2b1fdd8ee0a
files make/scripts/hgforest.sh
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/make/scripts/hgforest.sh	Fri May 11 17:52:57 2012 -0700
+++ b/make/scripts/hgforest.sh	Fri Jun 08 17:25:46 2012 -0700
@@ -112,6 +112,9 @@
     sleep 5
   fi
 done
+# Wait for all hg commands to complete
+wait
+
 if [ "${repos_extra}" != "" ] ; then
   for i in ${repos_extra} ; do
     echo "Starting on ${i}"
@@ -127,11 +130,10 @@
       sleep 5
     fi
   done
+  # Wait for all hg commands to complete
+  wait
 fi
 
-# Wait for all hg commands to complete
-wait
-
 # Cleanup
 rm -f -r ${tmp}