From f7a703e55707f14f6506bd450de6995ff427eac1 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 19 Dec 2016 22:01:06 -0500 Subject: [PATCH] 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. --- scripts/rev_control/version_control.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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=$? -- 2.34.1