aboutsummaryrefslogtreecommitdiffstats
path: root/test_usage.sh
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-16 15:59:41 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-16 15:59:41 -0500
commite4018dfe8cfa553adbd20898c5b42c3462ca1733 (patch)
treec6faf9b5bc93baa792cb974d08b349c5d5abc5e8 /test_usage.sh
parent2b071a28a2cedab54c713948c6b6f4bd27bb45e2 (diff)
downloadbugseverywhere-e4018dfe8cfa553adbd20898c5b42c3462ca1733.tar.gz
Added 'hg', 'arch', and 'none' RCS modes to test_usage.sh.
Diffstat (limited to 'test_usage.sh')
-rwxr-xr-xtest_usage.sh20
1 files changed, 17 insertions, 3 deletions
diff --git a/test_usage.sh b/test_usage.sh
index c751d28..26acce1 100755
--- a/test_usage.sh
+++ b/test_usage.sh
@@ -6,8 +6,7 @@
#
# usage: test_usage.sh RCS
# where RCS is one of:
-# bzr
-# git
+# bzr, git, hg, arch, none
set -e # exit imediately on failed command
set -o pipefail # pipes fail if any stage fails
@@ -21,7 +20,7 @@ then
echo "usage: test_usage.sh RCS"
echo ""
echo "where RCS is one of"
- for RCS in bzr git
+ for RCS in bzr git hg arch none
do
echo " $RCS"
done
@@ -43,10 +42,25 @@ then
EMAIL=`git-config user.email`
ID="$NAME <$EMAIL>"
git init
+elif [ "$RCS" == "hg" ]
+then
+ ID=`hg showconfig ui.username`
+ hg init
+elif [ "$RCS" == "arch" ]
+then
+ ID=`tla my-id`
+ tla init-tree
+elif [ "$RCS" == "none" ]
+then
+ ID=`id -nu`
else
echo "Unrecognized RCS $RCS"
exit 1
fi
+if [ -z "$ID" ]
+then # set a default ID
+ ID="John Doe <jdoe@example.com>"
+fi
echo "I am '$ID'"
be set-root .