changeset 340: |
37db99de55c1 |
parent 339: |
b8fa25450726 |
child 341: |
5964a3cb871e |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Sun, 21 Jul 2024 18:15:38 -0400 |
files: |
scripts/init-vc-bundles.sh |
description: |
init-vc-bundles |
1.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2+++ b/scripts/init-vc-bundles.sh Sun Jul 21 18:15:38 2024 -0400
1.3@@ -0,0 +1,14 @@
1.4+#!/bin/sh
1.5+
1.6+# given a directory bundle files (.hg), unbundle and replace
1.7+# the files with bare directories.
1.8+
1.9+DIR="${1:-/home/vc/src/}"
1.10+cd $DIR
1.11+for i in $(find . -type f -name ".hg"); do
1.12+ echo "unbundling $i"
1.13+ r=(basename "$i" .hg)
1.14+ hg init "$r"
1.15+ cd $r && hg unbundle $DIR/$i && cd $DIR
1.16+done
1.17+