Show More
Commit Description:
Add validation to Gitlab CI.
Commit Description:
Add validation to Gitlab CI.
References:
File last commit:
Show/Diff file:
Action:
scripts/gitmirror.sh
22 lines | 419 B | application/x-sh | BashLexer
22 lines | 419 B | application/x-sh | BashLexer
r442 | #!/bin/bash | |||
NEWDIR=`mktemp --directory` | ||||
hg convert . $NEWDIR --filemap gitfiles.map | ||||
cd $NEWDIR | ||||
BRANCHES=`hg branches` | ||||
for BRANCH in ${BRANCHES[@]}; do | ||||
if [[ ! "$BRANCH" =~ ^([0-9]+:)|(inactive)|(closed) ]]; then | ||||
echo $BRANCH; | ||||
`hg bookmark -r "${BRANCH}" "${BRANCH}_bookmark"` | ||||
fi | ||||
done | ||||
hg push https://gitlab.com/actuallyalys/isometric-park-fna.git | ||||
echo "run 'rm -r $NEWDIR' to clear directory." | ||||