X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Fsvnapply.sh;h=2c4d2f0765eabba0eae96e366352a327c1c5c4ee;hb=b33facdfa4d99b3d4924a8c12cc38ff8124dad10;hp=c9db62e71cce74b3756b570637faa8279d42cd88;hpb=c4c2b8b3a6ad11726f0f0ed0665ffff92ad9e744;p=feisty_meow.git diff --git a/scripts/rev_control/svnapply.sh b/scripts/rev_control/svnapply.sh index c9db62e7..2c4d2f07 100644 --- a/scripts/rev_control/svnapply.sh +++ b/scripts/rev_control/svnapply.sh @@ -1,17 +1,24 @@ #!/bin/bash # -# Applies arbitrary commands to any svn status. e.g. +# Applies arbitrary commands to any svn status. # -# Delete all non-svn files (escape the ? from the shell): -# svnapply \? rm +# For example, this shows any files that are in the working folder but are not part of the svn repository: +# svnapply \? echo +# +# This deletes all files that are not checked into svn (escape the ? from the shell): +# svnapply \? rm # # List all conflicted files: -# svnapply C ls -l +# svnapply C ls -l # # found on web at: # http://stackoverflow.com/questions/160104/how-do-you-add-all-untracked-files-in-svn-something-like-git-add-i # +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" + +save_terminal_title + PATTERN="$1"; shift svn st | egrep "^\\${PATTERN}[ ]+" | \ @@ -19,3 +26,5 @@ svn st | egrep "^\\${PATTERN}[ ]+" | \ sed -e "s|\\\\|/|g" | \ xargs -i "$@" '{}' +restore_terminal_title +