Create library of common hg-related functions
[hvutilities.git] / scripts / vco-sub
index 374faa7..a1a2275 100755 (executable)
@@ -1,6 +1,10 @@
 #!/bin/bash
 set -o errexit
 
+SCRIPT="`readlink -e $0`"
+SCRIPTPATH=$(dirname ${SCRIPT})
+source ${SCRIPTPATH}/hv-hg-functions.sh
+
 PROG_NAME=$(basename $0)
 
 # Version control checkout command for all subrepositories.
@@ -19,16 +23,6 @@ print_usage()
     echo "  -m   display only subrepositories with local modifications"
 }
 
-display_subrepo_name()
-{
-    COLOR_BLUE='\033[1;34m'
-    COLOR_NORMAL='\033[0m'
-
-    echo -en "${COLOR_BLUE}"
-    echo "${dest}"
-    echo -en "${COLOR_NORMAL}"
-}
-
 if [ "x${1}" = "x--help" ]; then
     print_usage
     exit 1