cleaning up revision control tools
[feisty_meow.git] / scripts / rev_control / version_control.sh
index c41f7cdded99575cf8737ba96b1383f860867527..b28d6f303b7e69fc1edb7daa971e3ecfa8f2c3e7 100644 (file)
@@ -204,7 +204,8 @@ function do_report_new
 # checks in all the folders in a specified list.
 function checkin_list()
 {
-  local list=$*
+  # make the list of directories unique.
+  local list="$(uniquify $*)"
 
   save_terminal_title
 
@@ -272,8 +273,9 @@ function do_update()
 }
 
 # gets all the updates for a list of folders under revision control.
-function checkout_list {
-  list=$*
+function checkout_list()
+{
+  local list="$(uniquify $*)"
 
   save_terminal_title
 
@@ -305,13 +307,13 @@ function generate_rev_ctrl_filelist()
   local dir="$1"; shift
   pushd "$dir" &>/dev/null
   local dirhere="$( \cd "$(\dirname "$dir")" && /bin/pwd )"
-  local tempfile=$(mktemp /tmp/zz_rev_checkin.XXXXXX)
+  local tempfile=$(mktemp /tmp/zz_checkins.XXXXXX)
   echo >$tempfile
   find $dirhere -follow -maxdepth $MAX_DEPTH -type d -iname ".svn" -exec echo {}/.. ';' >>$tempfile 2>/dev/null
   find $dirhere -follow -maxdepth $MAX_DEPTH -type d -iname ".git" -exec echo {}/.. ';' >>$tempfile 2>/dev/null
   # CVS is not well behaved like git and (now) svn, and we seldom use it anymore.
   popd &>/dev/null
-  local sortfile=$(mktemp /tmp/zz_rev_checkin_sort.XXXXXX)
+  local sortfile=$(mktemp /tmp/zz_checkin_sort.XXXXXX)
   sort <"$tempfile" >"$sortfile"
   \rm "$tempfile"
   echo "$sortfile"