Mercurial > infra / scripts/init-vc-bundles.sh
changeset 345: |
2e8d64feff08 |
parent: |
3e1218fe5721
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Sun, 21 Jul 2024 20:08:52 -0400 |
permissions: |
-rwxr-xr-x |
description: |
rm bundles after fetch |
3 # given a directory bundle files (.hg), unbundle and replace 4 # the files with bare directories. 6 DIR="${1:-/home/vc/src/}" 9 for i
in $(find
.
-type
f
-name
"*.hg"); do 11 r=$(basename
"$i" .hg
) 13 cd "$r" && hg
unbundle
"$DIR/$i" && cd "$DIR" 17 for i
in $(find
.
-type
f
-name
"*.git"); do 19 r=$(basename
"$i" .git
) 21 cd "$r" && git
fetch
"$DIR/packy/$i" && cd "$DIR/packy"