changeset 680:46ad42c8c2ef

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 f7561490722a
children 3a0e43ffdc49
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}