Mercurial > infra / scripts/bundle-packy.sh
changeset 279: |
91b552d64438 |
parent: |
a2313c7003d4
|
child: |
98c3d10d16df |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Mon, 17 Jun 2024 01:59:21 +0000 |
permissions: |
-rwxr-xr-x |
description: |
bundle updates |
2 # bundle a tar.zst archive of git repositories. 7 SRC_PATH=$HOME/src/
$BUNDLE 9 echo "Bundling $BUNDLE_NAME in $OUT..." 12 mkdir
-pv
$WD/src/packy
15 # Find all git repositories, create bundles and dump them to $OUT dir. 16 for i
in $(find
.
-name
".git" | cut
-c
3-
); do 18 echo "found git repo: $i" 20 echo "making git bundle..." 21 git
bundle
create
$WD/src/packy/
$(basename
$(realpath
.
)).git
--all
26 for i
in $(find
.
-name
".hg" | cut
-c
3-
); do 28 echo "found hg repo: $i" 30 echo "making none-v2 bundle..." 31 hg
bundle
-a
-t
none-v2
$WD/src/packy/
$(basename
$(hg
root
)).hg
36 # archive all *.git bundles and Mercurial .hg bundle 37 cd $WD/src
&& tar
-I
'zstd' -cf
$OUT/
$BUNDLE.tar.zst
packy/*