[zorg] r273598 - Remove untracked files on svn update
Nirav Dave via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 23 12:01:25 PDT 2016
Author: niravd
Date: Thu Jun 23 14:01:24 2016
New Revision: 273598
URL: http://llvm.org/viewvc/llvm-project?rev=273598&view=rev
Log:
Remove untracked files on svn update
Modified:
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh?rev=273598&r1=273597&r2=273598&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh Thu Jun 23 14:01:24 2016
@@ -6,6 +6,8 @@ function update_or_checkout {
local tree=$3
if [ -d ${tree} ]; then
svn up "${tree}" $rev_arg
+ # Remove untracked files from tree
+ svn status "${tree}" --no-ignore | grep '^[I?]' | cut -c 9- | while IFS= read -r f; do rm -rf "$f"; done
else
svn co "${repo}" "${tree}" $rev_arg
fi
More information about the llvm-commits
mailing list