##// END OF EJS Templates
discovery-helper: move repository creation in a function...
marmoute -
r42092:cb6c9d41 default
parent child Browse files
Show More
@@ -81,18 +81,21 b' if [ $doright -eq 1 ]; then'
81 echo '# right revset:' '"'${rightsubset}'"'
81 echo '# right revset:' '"'${rightsubset}'"'
82 fi
82 fi
83
83
84 if [ $doleft -eq 1 ]; then
84 buildone() {
85 echo '### building left repository:' $left-repo
85 side=$1
86 dest=$2
87 revset=$3
88 echo "### building $side repository: $dest"
86 echo '# cloning'
89 echo '# cloning'
87 hg clone --noupdate "${repo}" "${leftrepo}"
90 hg clone --noupdate "${repo}" "${dest}"
88 echo '# stripping' '"'${leftsubset}'"'
91 echo '# stripping' '"'${revset}'"'
89 hg -R "${leftrepo}" --config extensions.strip= strip --rev "$leftsubset" --no-backup
92 hg -R "${dest}" --config extensions.strip= strip --rev "$revset" --no-backup
93 }
94
95 if [ $doleft -eq 1 ]; then
96 buildone left $leftrepo $leftsubset
90 fi
97 fi
91
98
92 if [ $doright -eq 1 ]; then
99 if [ $doright -eq 1 ]; then
93 echo '### building right repository:' $right-repo
100 buildone right $rightrepo $rightsubset
94 echo '# cloning'
95 hg clone --noupdate "${repo}" "${rightrepo}"
96 echo '# stripping:' '"'${rightsubset}'"'
97 hg -R "${rightrepo}" --config extensions.strip= strip --rev "$rightsubset" --no-backup
98 fi
101 fi
General Comments 0
You need to be logged in to leave comments. Login now