From: Chris Koeritz Date: Tue, 20 Dec 2016 03:01:06 +0000 (-0500) Subject: smoot-tastic with the .no-checkin X-Git-Tag: 2.140.90~318 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=f7a703e55707f14f6506bd450de6995ff427eac1;p=feisty_meow.git smoot-tastic with the .no-checkin now can add a .no-checkin file at the top of a repository (svn, git, etc) and if that file is found, then the repository will not be checked in or have changes reported by our tools. this is crucial for checking out others repos that we don't intend to modify. --- diff --git a/scripts/rev_control/version_control.sh b/scripts/rev_control/version_control.sh index 432d3263..9bf195c1 100644 --- a/scripts/rev_control/version_control.sh +++ b/scripts/rev_control/version_control.sh @@ -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=$?