better naming for revision control action method.
[feisty_meow.git] / scripts / rev_control / rev_report_new.sh
index cac32b6fa06df7ddc87607e893733b13f2eade7d..1d0aeaad720867a32df164dd4f4ac41dbe44daf6 100644 (file)
@@ -1,5 +1,4 @@
 #!/bin/bash
-
 # this script reports files that are not checked in yet in a set of folders.
 # it works with subversion only, since git handles new files well whereas
 # subversion ignores them until you tell it about them.  this script can take
@@ -11,19 +10,11 @@ if [ -z "$dir" ]; then
   dir=.
 fi
 
+source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
+
 pushd "$dir" &>/dev/null
+tempfile=$(generate_rev_ctrl_filelist)
+popd &>/dev/null
 
-for i in * ; do
-  if [ -d "$i" ]; then
-    echo "[$i]"
-    pushd $i &>/dev/null
-    # only update if we see a repository living there.
-    if [ -d ".svn" ]; then
-      bash $FEISTY_MEOW_SCRIPTS/rev_control/svnapply.sh \? echo
-    fi
-    popd &>/dev/null
-    echo "======="
-  fi
-done
+perform_revctrl_action_on_file "$tempfile" do_report_new
 
-popd &>/dev/null