smoot-tastic with the .no-checkin
[feisty_meow.git] / scripts / rev_control / version_control.sh
index 432d32636c4bfb3de14efddd4f4184a5ec6fe87c..9bf195c1b9221c6fff9d364966372f07b49bb097 100644 (file)
@@ -113,7 +113,9 @@ function do_checkin()
   fi
   pushd "$directory" &>/dev/null
   local retval=0  # normally successful.
-  if [ -d "CVS" ]; then
+  if [ -f ".no-checkin" ]; then
+    echo "Not checking in because found .no-checkin sentinel file."
+  elif [ -d "CVS" ]; then
     cvs ci .
     retval=$?
   elif [ -d ".svn" ]; then
@@ -163,7 +165,9 @@ function do_report_new
   local retval=0  # normally successful.
 
   # only update if we see a repository living there.
-  if [ -d ".svn" ]; then
+  if [ -f ".no-checkin" ]; then
+    echo "Not reporting mods because found .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=$?