# HG changeset patch # User Richard Westhaver # Date 1721600138 14400 # Node ID 37db99de55c1f06ee69d61535f91254fe2117703 # Parent b8fa25450726f550bc39a0b4b8ba65c7f847ac42 init-vc-bundles diff -r b8fa25450726 -r 37db99de55c1 scripts/init-vc-bundles.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/init-vc-bundles.sh Sun Jul 21 18:15:38 2024 -0400 @@ -0,0 +1,14 @@ +#!/bin/sh + +# given a directory bundle files (.hg), unbundle and replace +# the files with bare directories. + +DIR="${1:-/home/vc/src/}" +cd $DIR +for i in $(find . -type f -name ".hg"); do + echo "unbundling $i" + r=(basename "$i" .hg) + hg init "$r" + cd $r && hg unbundle $DIR/$i && cd $DIR +done +