7184406: Adjust get_source/hgforest script to allow for trailing // characters

Mon, 16 Jul 2012 11:43:23 -0700

author
ohair
date
Mon, 16 Jul 2012 11:43:23 -0700
changeset 462
ba77d95ed219
parent 460
1dcb4b7b9373
child 463
3f6c72d1c2a6

7184406: Adjust get_source/hgforest script to allow for trailing // characters
Reviewed-by: tbell

make/scripts/hgforest.sh file | annotate | diff | comparison | revisions
     1.1 --- a/make/scripts/hgforest.sh	Wed Jul 11 16:00:14 2012 -0700
     1.2 +++ b/make/scripts/hgforest.sh	Mon Jul 16 11:43:23 2012 -0700
     1.3 @@ -98,7 +98,8 @@
     1.4    (
     1.5      (
     1.6        if [ "${command}" = "clone" -o "${command}" = "fclone" ] ; then
     1.7 -        cline="hg clone ${pull_default}/${i} ${i}"
     1.8 +        pull_newrepo="`echo ${pull_default}/${i} | sed -e 's@\([^:]/\)//*@\1@g'`"
     1.9 +        cline="hg clone ${pull_newrepo} ${i}"
    1.10          echo "# ${cline}"
    1.11          ( eval "${cline}" )
    1.12        else
    1.13 @@ -121,7 +122,8 @@
    1.14      n=`expr ${n} '+' 1`
    1.15      (
    1.16        (
    1.17 -          cline="hg clone ${pull_extra}/${i} ${i}"
    1.18 +          pull_newextrarepo="`echo ${pull_extra}/${i} | sed -e 's@\([^:]/\)//*@\1@g'`"
    1.19 +          cline="hg clone ${pull_newextrarepo} ${i}"
    1.20            echo "# ${cline}"
    1.21            ( eval "${cline}" )
    1.22          echo "# exit code $?"

mercurial