Show More
@@ -82,10 +82,14 b' if [ $doright -eq 1 ]; then' | |||||
82 | fi |
|
82 | fi | |
83 |
|
83 | |||
84 | buildone() { |
|
84 | buildone() { | |
85 | side=$1 |
|
85 | side="$1" | |
86 | dest=$2 |
|
86 | dest="$2" | |
87 | revset=$3 |
|
87 | revset="$3" | |
88 | echo "### building $side repository: $dest" |
|
88 | echo "### building $side repository: $dest" | |
|
89 | if [ -e "$dest" ]; then | |||
|
90 | echo "destination repo already exists: $dest" >&2 | |||
|
91 | exit 1 | |||
|
92 | fi | |||
89 | echo '# cloning' |
|
93 | echo '# cloning' | |
90 | hg clone --noupdate "${repo}" "${dest}" |
|
94 | hg clone --noupdate "${repo}" "${dest}" | |
91 | echo '# stripping' '"'${revset}'"' |
|
95 | echo '# stripping' '"'${revset}'"' | |
@@ -93,9 +97,9 b' buildone() {' | |||||
93 | } |
|
97 | } | |
94 |
|
98 | |||
95 | if [ $doleft -eq 1 ]; then |
|
99 | if [ $doleft -eq 1 ]; then | |
96 | buildone left $leftrepo $leftsubset |
|
100 | buildone left "$leftrepo" "$leftsubset" | |
97 | fi |
|
101 | fi | |
98 |
|
102 | |||
99 | if [ $doright -eq 1 ]; then |
|
103 | if [ $doright -eq 1 ]; then | |
100 | buildone right $rightrepo $rightsubset |
|
104 | buildone right "$rightrepo" "$rightsubset" | |
101 | fi |
|
105 | fi |
General Comments 0
You need to be logged in to leave comments.
Login now