+function do_report_new
+{
+ local directory="$1"; shift
+
+ save_terminal_title
+
+ pushd "$directory" &>/dev/null
+ local retval=0 # normally successful.
+
+ # only update if we see a repository living there.
+ if [ -f ".no-checkin" ]; then
+ echo "skipping reporting due to presence of .no-checkin sentinel file."
+ elif [ -d ".svn" ]; then
+ # this action so far only makes sense and is needed for svn.
+ bash $FEISTY_MEOW_SCRIPTS/rev_control/svnapply.sh \? echo
+ retval=$?
+ elif [ -d ".git" ]; then
+ git status -u
+ retval=$?
+ fi
+
+ popd &>/dev/null
+
+ restore_terminal_title
+
+ return $retval
+}