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