|
|
|
Run devops/tools/newbranch.sh
|
|
|
|
|
|
|
|
```
|
|
|
|
export BRANCH=bug1511
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
for file in `ls */requirements-dev.in` ; do
|
|
|
|
dir=$(dirname $file)
|
|
|
|
git -C $dir checkout "$BRANCH"
|
|
|
|
git -C $dir fetch origin
|
|
|
|
git -C $dir reset --hard origin/$BRANCH
|
|
|
|
done
|
|
|
|
```
|
|
|
|
|
|
|
|
Next we need to fix up the requirements-dev.in for all the modules:
|
|
|
|
|
|
|
|
```
|
|
|
|
sed -i "s/@master/@$BRANCH/" */requirements-dev.in
|
|
|
|
```
|
|
|
|
|
|
|
|
Push all those commits:
|
|
|
|
|
|
|
|
```
|
|
|
|
for file in `ls */requirements-dev.in` ; do
|
|
|
|
dir=$(dirname $file)
|
|
|
|
( cd $dir && tox -e pip-compile )
|
|
|
|
git -C $dir commit --signoff -m "Update requirements to point to branch" requirements-dev.in requirements-dev.txt
|
|
|
|
git -C $dir restore 'requirements*.txt'
|
|
|
|
git -C $dir review
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
for file in `ls */requirements-dev.in` ; do
|
|
|
|
dir=$(dirname $file)
|
|
|
|
echo $dir
|
|
|
|
git -C $dir review
|
|
|
|
done
|
|
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |